Polynomial is a C++ class facilitating the evaluation of polynomials of a single indeterminate.

# Category: Math / Numerical Analysis

## Digital Library of Mathematical Functions

Check out: NIST Digital Library of Mathematical Functions (companion to the NIST Handbook of Mathematical Functions)

## C++ Functions to Evaluate Chebyshev Polynomials

Here’s some C++ functions which evaluate Chebyshev polynomials:

T_{0}(x):

**double** T0(**double** x) ;

T_{1}(x):

**double** T1(**double** x) ;

T_{2}(x):

**double** T2(**double** x) ;

T_{n}(x):

**double** Tn(**unsigned** **int** n, **double** x) ;

These are inline functions defined in the header file, chebyshev.h:

(more…)## C++ Functions to Evaluate Legendre Polynomials

Here’s some C++ functions which evaluate Legendre polynomials:

P_{0}(x):

**double** P0(**double** x) ;

P_{1}(x):

**double** P1(**double** x) ;

P_{2}(x):

**double** P2(**double** x) ;

P_{n}(x):

**double** Pn(**unsigned** **int** n, **double** x) ;

These are inline functions defined in the header file, legendre.h:

(more…)## Matrix Template Library

While rewriting some data analysis software I developed many years ago (the original was written in K & R C, the new version will be written in C++), I stumbled upon The Matrix Template Library (MTL). MTL is a library that provides comprehensive linear algebra functionality for a wide variety of matrix formats. I was … Continue reading “Matrix Template Library”

## Two Free Computer Algebra Systems

A few months ago I was looking for a free computer algebra system (CAS). For some reason (probably I wasn’t really looking hard enough), I didn’t find anything that the bill. Yesterday, while updating Cygwin on my Windows box at work, I saw a link to something called Mathomatic. I turns out that Mathomatic is … Continue reading “Two Free Computer Algebra Systems”