Sergey Sadov's C++ Library for Numerical Mathematics

real.h
Definition of type Real and some common constants       Test

range.h
class Range:   segment [low,high] of integers

math2.h    +    math2.cpp
Frequently used mathematical utilities in addition to those in <math.h> (sqr, min/max, sign, round, evaluation of algebraic and trigonometric polynomials)

matrix.h    +    matrix.cxx
class Matrix:   Matrix with real entries. Includes arithmetics and Gaussian elimination. (But no eigenvalues, sorry.)
      Test (solving 1000x1000, may take a minute or more)

cmpl.h    +    cmpl.cpp   (X)
class Cmpl:   Complex arithmetics. It does not interfere with C99's definition of complex. (And is efficient!)

cmatrix.h    +    cmatrix.cpp  (X)
class CMatrix:   Analog of class Matrix, but with complex entries.

spline.h    +    spline.cxx  (X)
class Spline:   Cubic splines with "zero curvature" or periodic boundary conditions.

((X) Access denied?.. Sorry. I am currently putting this stuff on the web... It is being carefully tested again.)


[Sergey Sadov's home page]