Node:Im, Next:, Previous:if, Up:Reference



Im

Synopsis


function Im (z: Complex): Real;

Description

Im extracts the imaginary part of the complex number z. The result is a real value.

Conforming to

Im is an ISO 10206 Extended Pascal extension.

Example


program ImDemo;
var
  z: Complex;
begin
  z := Cmplx (1, 2);  { 1 + i * 2 }
  WriteLn (Im (z) : 0 : 5)  { 2.00000 }
end.

See also

Cmplx, Re, Arg.