In addition to common functions like
log, MATLAB® has several other related functions to allow flexible numerical calculations.
log1p functions compensate for numerical round-off errors in small arguments,
realsqrt functions restrict the range of these
functions to real numbers.
nthroot calculates roots of any order, while the
nextpow2 calculate powers of two.
|Compute exp(x)-1 accurately for small values of x|
|Common logarithm (base 10)|
|Compute log(1+x) accurately for small values of x|
|Base 2 logarithm and floating-point number dissection|
|Exponent of next higher power of 2|
|Real nth root of real numbers|
|Base 2 exponentiation and scaling of floating-point numbers|
|Natural logarithm for nonnegative real arrays|
|Array power for real-only output|
|Square root for nonnegative real arrays|