addaptic

Reference Complex arithmetic

lzc_conjugate

The complex conjugate: the same real part, the imaginary part negated.

long lzc_conjugate( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );

a − bi from a + bi, exactly.

Examples

CallAnswer
lzc_conjugate( 1 + 2i )1 − 2i
lzc_conjugate( 3 − 4i )3 + 4i

Each answer is what Addaptic printed for the call, at 36 places unless a setting is shown.

Returns

kNoError (0) when the answer is written. Otherwise an error code, with the answer flagged infinite or not-a-number; see Errors and flags.

See also

  • lzc_negate The complex number with both signs changed.