NMath Tutorial

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

Polynomial Curve Fitting

A customer recently asked how to reproduce the results of the MATLAB polyfit function in NMath. This is easily done using NMath in C#. MATLAB NMath Standard package CenterSpace.NMath.Analysis polyfit( x, y, degree ) PolynomialLeastSquares( degree, x, y ) Notes: polynomial coefficients are returned in the reverse order. For example, here's some MATLAB code for fittin...
Read More
Top