Node:Conjugate, Next:const, Previous:Concat, Up:Reference
function Conjugate (z: Complex): Complex;
Conjugate computes the complex conjugate of the complex number z
Conjugate is a GNU Pascal extension.
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.