Node:Conjugate, Next:, Previous:Concat, Up:Reference



Conjugate

Synopsis


function Conjugate (z: Complex): Complex;

Description

Conjugate computes the complex conjugate of the complex number z

Conforming to

Conjugate is a GNU Pascal extension.

Example


program ConjugateDemo;
var
  z: Complex;
begin
  z := Cmplx (2, 3);  { z is 2 + i * 3 }
  WriteLn ('z = ', Re (z) : 0 : 5, ' + i * ', Im (z) : 0 : 5);
  z := Conjugate (z);  { z conjugate is 2 - i * 3 }
  WriteLn ('z conjugate = ', Re (z) : 0 : 5,' + i * ', Im (z) : 0 : 5)
end.

See also

Cmplx, Re, Im, Abs