Using the C++ Math Library    

Specialized Math Functions

Specialized Math Functions 
Function
Purpose
beta
Beta function.
betainc
Incomplete beta function.
betaln
Logarithm of beta function.
cross
Vector cross product.
ellipj
Jacobi elliptic functions.
ellipke
Complete elliptic integral.
erf
Error function.
erfc
Complementary error function.
erfcx
Scaled complementary error function.
erfinv
Inverse error function.
expint
Exponential integral function.
gamma
Gamma function.
gammainc
Incomplete gamma function.
gammaln
Logarithm of gamma function.
legendre
Legendre functions.

Number Theoretic Functions 
Function
Purpose
factor
Prime factors.
gcd
Greatest common divisor.
isprime
True for prime numbers.
lcm
Least common multiple.
nchoosek
All combinations of n elements taken k at a time.
perms
All possible permutations.
primes
Generate list of prime numbers.
rat
Rational approximation.
rats
Rational output.

Coordinate System Transforms 
Function
Purpose
cart2pol
Transform Cartesian coordinates to polar.
cart2sph
Transform Cartesian coordinates to spherical.
pol2cart
Transform polar coordinates to Cartesian.
sph2cart
Transform spherical coordinates to Cartesian.


 Elementary Math Functions Numerical Linear Algebra