Exponential functions¶
Floating point special functions about a point.
- boring_math.special_functions.exponential.exp0(x: float, /, n: int = 22) float¶
Partially factored Taylor expansion of exp about
x = 0.Note
Best if
-1 <= x <= 1.- Parameters:
x – independent variable
n – terms in expansion, must have
n >= 22
- Returns:
Taylor series expansion of
eˣcentered atx = 0
- boring_math.special_functions.exponential.exp(x: float, /, n: int = 22) float¶
Exponential function good for all floating point x.
- Parameters:
x – independent variable
n – terms in expansion, must have
n >= 20
- Returns:
Value of
eˣ
- boring_math.special_functions.exponential.cexp0(z: complex, /, n: int = 22) complex¶
Partially factored Taylor expansion of exp about z = 0.
Note
Best if
|z| <= 1.- Parameters:
z – independent variable
n – terms in expansion, must have n >= 20
- Returns:
Taylor series expansion of eᶻ centered at z = 0
- boring_math.special_functions.exponential.cexp(z: complex, /, n: int = 22) complex¶
Exponential function good for all complex z.
- Parameters:
z – independent variable
n – terms in expansion, must have n >= 20
- Returns:
Value of
eᶻ