Exponential and Logarithmic Functions#
- exp(x)#
Exponential function.
- Parameters:
x (Real) – The exponent to which \(e\) is raised.
- Definition:
\(\exp(x) = e^x\)
- Domain:
\((-\infty, \infty)\)
- Range:
\((0, \infty)\)
- Returns:
The value of \(e^x\).
- Return type:
Real
- exp2(x)#
Base-2 exponential function.
- Parameters:
x (Real) – The exponent to which \(2\) is raised.
- Definition:
\(\mathrm{exp2}(x) = 2^x\)
- Domain:
\((-\infty, \infty)\)
- Range:
\((0, \infty)\)
- Returns:
The value of \(2^x\).
- Return type:
Real
- expm1(x)#
Exponential-minus-one function.
- Parameters:
x (Real) – The exponent to which \(e\) is raised.
- Definition:
\(\mathrm{expm1}(x) = e^x - 1\)
- Domain:
\((-\infty, \infty)\)
- Range:
\((-1, \infty)\)
- Returns:
The value of \(e^x - 1\).
- Return type:
Real
- log(x)#
Natural logarithm function.
- Parameters:
x (Real) – The value to take the natural logarithm of.
- Definition:
\(\log(x) = \log_e(x)\)
- Domain:
\((0, \infty)\)
- Range:
\((-\infty, \infty)\)
- Returns:
The value of \(\log(x)\).
- Return type:
Real
- log1p(x)#
Natural logarithm of one plus the argument.
- Parameters:
x (Real) – The value to add \(1\) to before taking the natural logarithm.
- Definition:
\(\mathrm{log1p}(x) = \log(1 + x)\)
- Domain:
\((-1, \infty)\)
- Range:
\((-\infty, \infty)\)
- Returns:
The value of \(\log(1 + x)\).
- Return type:
Real
- log10(x)#
Base-10 logarithm function.
- Parameters:
x (Real) – The value to take the base-10 logarithm of.
- Definition:
\(\mathrm{log10}(x) = \log_{10}(x)\)
- Domain:
\((0, \infty)\)
- Range:
\((-\infty, \infty)\)
- Returns:
The value of \(\log_{10}(x)\).
- Return type:
Real
- log2(x)#
Base-2 logarithm function.
- Parameters:
x (Real) – The value to take the base-2 logarithm of.
- Definition:
\(\mathrm{log2}(x) = \log_{2}(x)\)
- Domain:
\((0, \infty)\)
- Range:
\((-\infty, \infty)\)
- Returns:
The value of \(\log_{2}(x)\).
- Return type:
Real