Elementary scalar functions (real and complex)#
Elementary scalar functions
- Complex components
- Absolute value of a real or complex number
- Sign of a real or complex number
- Real part of a real or complex number
- Imaginary part of a real or complex number
- Phase (or argument) of a real or complex number
- Conjugate of a real or complex number
- Polar representation of a real or complex number
- Rectangular coordinates calculated from the polar representation of a real or complex number
- Roots and quadratic, cubic, and quartic equations
- Exponential and related functions
- Exponential function \(\exp(x) = e^x\)
- Auxiliary function \(\mathrm{expj}(x) = e^{ix}\)
- Auxiliary function \(\mathrm{expjpi}(x) = e^{i \pi x} = (-1)^x\)
- Exponential function with base \(10\), \(\mathrm{exp10}(x) = 10^z\)
- Exponential function with base \(2\), \(\mathrm{exp2}(x) = 2^x\)
- Auxiliary function \(\mathrm{expm1}(x) = e^x-1\)
- Auxiliary function \(\mathrm{exp10m1}(x) = 10^x - 1\)
- Auxiliary function \(\mathrm{exp2m1}(x) = 2^x - 1\)
- Logarithms and related functions
- Natural logarithm \(\log(x)\)
- Logarithm with base \(10\), \(\mathrm{log10}(x) = \log_{10}(x)\)
- Logarithm with base \(2\), \(\mathrm{log2}(x) = \log_{2}(x)\)
- Logarithm with base \(b\), \(\mathrm{logbase}(x, b) = \log_{b}(x)\)
- Auxiliary function \(\mathrm{log1p}(x) = \log(x+1)\)
- Auxiliary function \(\mathrm{log10p1}(x) = \log_{10}(1+x)\)
- Auxiliary function \(\mathrm{log2p1}(x) = \log_2(1+x)\)
- Power functions
- Square, \(x^2\)
- Cube, \(x^3\)
- Auxiliary function \(\mathrm{powi}(x,n) = x^n\)
- Auxiliary function \(\mathrm{compound}(x,n) = (1+x)^n\)
- Auxiliary function \(\mathrm{comprel}(x,n) = (1+x)^n - 1\)
- Auxiliary function \(\mathrm{hypot}(x,y) = \sqrt{x^2 + y^2}\)
- Power function, \(\mathrm{pow}(x, y) = x^y\)
- Auxiliary function, \(\mathrm{powm1}(x, y) = x^y-1\)
- Auxiliary function, \(\mathrm{pow1p}(x, y) = (1+x)^y\)
- Auxiliary function, \(\mathrm{pow1pm1}(x, y) = (1+x)^y - 1\)
- Trigonometric functions, in radians
- Trigonometric functions, in multiples of \(\pi\)
- Auxiliary function \(\mathrm{sinpi}(x) = \sin(\pi x)\)
- Auxiliary function \(\mathrm{cospi}(x) = \cos(\pi x)\)
- Auxiliary function \(\mathrm{tanpi}(x) = \tan(\pi x)\)
- Auxiliary function \(\mathrm{cotpi}(x) = \cot(\pi x)\)
- Auxiliary function \(\mathrm{cscpi}(x) = \mathrm{csc}(\pi x)\)
- Auxiliary function \(\mathrm{secpi}(x) = \mathrm{sec}(\pi x)\)
- Auxiliary function \(\mathrm{sincpi}(x) = \mathrm{sinc}(\pi x)\)
- Hyperbolic functions
- Inverse trigonometric functions, in radians
- Inverse hyperbolic functions
- Factorials, Gamma and related functions
- Gamma function, \(\Gamma(x)\)
- Auxiliary function \(\Gamma(x+1)-1\)
- Log-gamma function, \(\log\Gamma(x)\)
- Reciprocal Gamma function, \(1/\Gamma(x)\)
- Factorial, \(x!\)
- Double factorial, \(x!!\)
- Rising factorial \(a^{\overline{n}} = (a)_n\)
- Falling factorial, \((a)^{\underline{n}} = (a-n+1)^{\overline{n}}\)
- Ratio of gamma functions, \(\Gamma(a)/\Gamma(b)\)
- Gamma-delta ratio, \(\Gamma(a)/\Gamma(a + \delta)\)
- Beta function, \(B(a,b) = \Gamma(a)\Gamma(b)/\Gamma(a + b)\)
- Binomial coefficient, \({}_nC_k = (k \cdot B(k, n-k+1))^{-1}\)
- Miscellaneous functions