lzc_square
The complex number times itself.
long lzc_square( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );
Each part worked exactly and rounded once, half-even, as a function is, whatever the target's settings.
Examples
| Call | Answer |
|---|---|
lzc_square( 1 + 2i ) | −3 + 4i |
lzc_square( 0 + 1i ) | −1 + 0i |
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_multiplyThe product of two complex numbers.lzc_root_2The principal square root of a complex number.lz_squareThe number times itself.