complex number division

Complex numbers in .NET with NMath

A set of classes for working with complex numbers is not including in the .NET framework. These classes are frequently hand rolled by programmers to fill an immediate need, but this forces the developer into an on-going task developing compatible numeric algorithms with these custom classes. CenterSpace's NMath libraries solve this issue by providing a framework with an extensive set of numeric ...
Read More

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
Top