ImSub

Description

Perform subtraction between two complexes.

ImSub \left( x1+i*y1, x2+i*y2 \right )=(x1-x2)+i*(y1-y2)

Syntax

complex ImSub(complex cY1, complex cY2)

Parameters

cY1

The minuend.

cY2

The subtrahend.

Return

Return the difference of two specified complexes.

Example

imSub(3+4i, 1+2i) = ;  // 2+2i
 
complex c1 = 1+1i;
complex c2 = 4+1i;
complex c3;
c3 = imSub(c1, c2);
c3 = ;  // -3

See Also

ImSum