Using the C++ Math Library    

Elementary Math Functions

Trigonometric Functions 
Function
Purpose
acos
Inverse cosine.
acosh
Inverse hyperbolic cosine.
acot
Inverse cotangent.
acoth
Inverse hyperbolic cotangent.
acsc
Inverse cosecant.
acsch
Inverse hyperbolic cosecant.
asec
Inverse secant.
asech
Inverse hyperbolic secant.
asin
Inverse sine.
asinh
Inverse hyperbolic sine.
atan
Inverse tangent.
atan2
Four quadrant inverse tangent.
atanh
Inverse hyperbolic tangent.
cos
Cosine.
cosh
Hyperbolic cosine.
cot
Cotangent.
coth
Hyperbolic cotangent.
csc
Cosecant.
csch
Hyperbolic cosecant.
sec
Secant.
sech
Hyperbolic secant.
sin
Sine.
sinh
Hyperbolic sine.
tan
Tangent.
tanh
Hyperbolic tangent.

Exponential Functions 
Function
Purpose
exp
Exponential.
log
Natural logarithm.
log10
Common (base 10) logarithm.
log2
Base 2 logarithm and dissect floating-point numbers.
nextpow2
Next higher power of 2.
pow2
Base 2 power and scale floating-point numbers.
reallog
Guarantee output from log is a noncomplex matrix.
reallog10
Guarantee output from log10 is a noncomplex matrix.
realpow
Guarantee output from power is a noncomplex matrix.
realsqrt
Guarantee output from sqrt is a noncomplex matrix.
sqrt
Square root.

Complex Functions 
Function
Purpose
abs
Absolute value.
angle
Phase angle.
conj
Complex conjugate.
cplxpair
Sort numbers into complex conjugate pairs.
imag
Complex imaginary part.
isreal
True for noncomplex arrays.
real
Real part of complex array.
unwrap
Remove phase angle jumps across 360° boundaries.

Rounding and Remainder Functions 
Function
Purpose
ceil
Round toward plus infinity.
fix
Round toward zero.
floor
Round toward minus infinity.
mod
Modulus (signed remainder after division).
rem
Remainder after division.
round
Round toward nearest integer.
sign
Signum function.


 Elementary Matrices and Matrix Manipulation Specialized Math Functions