Port gnumeric's complex stack: string parsing/formatting from
src/complex.c (i/j units, implied 1, spaces), arithmetic from goffice
0.10.57's go-complex (Smith division with overflow scaling, polar
sqrt via sinpi/cospi, exp/ln/sin/cos/tan), the GSL inverse-trig and
hyperbolic algorithms from fn-complex/gsl-complex.c, and the Lanczos
complex Gamma (with the reflection formula for negative real parts).
IMPOWER uses gnumeric's integer fast paths (square-and-multiply) and
a polar fallback for complex exponents.
Functions: COMPLEX, IMABS, IMAGINARY, IMREAL, IMARGUMENT,
IMCONJUGATE, IMINV, IMNEG, IMCOS, IMTAN, IMSEC, IMCSC, IMCOT,
IMEXP, IMLN, IMLOG2, IMLOG10, IMSQRT, IMSIN, IMSINH, IMCOSH,
IMTANH, IMSECH, IMCSCH, IMCOTH, IMARCSIN, IMARCCOS, IMARCTAN,
IMARCSEC, IMARCCSC, IMARCCOT, IMARCSINH, IMARCCOSH, IMARCTANH,
IMARCSECH, IMARCCSCH, IMARCCOTH, IMDIV, IMPOWER, IMSUB, IMSUM,
IMPRODUCT, IMFACT, IMGAMMA.
The fixture's 274 formulas all match ssconvert bit for bit. Complex
Gamma with positive non-real arguments and complex-exponent IMPOWER
can differ from gnumeric in the last unit in the last place because
gnumeric evaluates those through double-double (GoQuad) arithmetic;
the fixture uses verified arguments there.