C++ Functions to Evaluate Chebyshev Polynomials

Filed under: C++, Math / Numerical Analysis — jac @ July 28, 2007 - 8:21 pm

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

T0(x):
double T0(double x) ;

T1(x):
double T1(double x) ;

T2(x):
double T2(double x) ;

Tn(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

Filed under: C++, Math / Numerical Analysis — jac @ September 28, 2005 - 2:05 pm

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

P0(x):
double P0(double x) ;

P1(x):
double P1(double x) ;

P2(x):
double P2(double x) ;

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

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

(more…)


Matrix Template Library

Filed under: C++, Math / Numerical Analysis — jac @ February 6, 2005 - 2:46 pm

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 researching ways to implement my own matrix template library when I found MTL. After checking it out, I’m thinking of just using MTL since it’s more than adequate for my present needs and the support for a wide variety of matrix formats might be useful for future projects.

The only drawback I see is MTL hasn’t been updated in about three years.



Two Free Computer Algebra Systems

Filed under: Math / Numerical Analysis — jac @ February 2, 2005 - 7:58 am

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 a nifty console based computer algebra system (follow the link and you can try Mathomatic via telnet).

The Mathomatic page includes a link to Maxima, a descendant of DOE Macsyma. Maxima is a more complete CAS then Mathomatic, but is a little more complicated to install.




  



March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Statistics

There are currently 42 posts and 25 comments, contained within 13 categories.


Miscellaneous
- Source Files

Add to Technorati Favorites


Storage B
-OpenDDS 2.1.1
-OpenDDS 2.1
-It Proved Just Too Difficult
-Bridge Simulators
-C++0x FAQ
-Skepticism and standards of evidence applied development practices
-OpenDDS 2.0.1
-OpenDDS 2.0
-OpenDDS Version 1.3 Released
-LGPL License Option Added to Qt

Valid XHTML 1.0!

Valid CSS!