Author: Steve Sneller

Complex division by zero

An NMath customer submitted the following support question: I'm working on the primitives (NMathCoreShared.dll) and have found a rather odd 'quirk' with complex division by zero: DoubleComplex aa = new DoubleComplex(0.0, 0.0); DoubleComplex bb = new DoubleComplex(5.2, -9.1); DoubleComplex cc = new DoubleComplex(); cc = bb/aa; Console.WriteLine(cc); // (NaN,NaN) double g = -5.0 / 0.0; ...
Read More