addaptic

Reference Complex arithmetic

lzc_negate

The complex number with both signs changed.

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

Both parts with their signs changed, exactly.

Examples

CallAnswer
lzc_negate( 1 − 2i )−1 + 2i

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_conjugate The complex conjugate: the same real part, the imaginary part negated.
  • lz_negate The number with its sign changed.