Earlier quoted context omitted.
You might as well use WebAssembly for the task. C and C++ have good native complex number support.
They don't really, they tried to glue IEEE semantics onto their complex numbers, so they're largely broken in the modern era of auto-vectorizing compilers.
Re: Complex numbers in JavaScript
#11Interesting. Under what circumstances are they broken?. Inf, NaN?