Floating point functions¶
Floating point special functions.
- boring_math.special_functions.float.exp(x: float, /, n: int = 22) float¶
Partially factored Taylor expansion of exp about x = 0.
- Parameters:
x – independent variable
n – terms in expansion, must have
n >= 20
- Returns:
Value of
eˣ
- boring_math.special_functions.float.sin(x: float, /, n: int = 22) float¶
Partially factored Taylor expansion of sine about x = 0.
- Parameters:
x – angle in radians
n – terms in expansion, must have 2 <= n <= 20
- Returns:
Taylor series expansion of sine(x) centered at x = 0
- boring_math.special_functions.float.cos(x: float, /, n: int = 22) float¶
Partially factored Taylor expansion of cosine about x = 0.
- Parameters:
x – angle in radians
n – terms in expansion, must have 2 <= n <= 20
- Returns:
Taylor series expansion of cosine(x) centered at x = 0
- boring_math.special_functions.float.tan(x: float, /, n: int = 22) float¶
Tangent centered about x = 0.
- Parameters:
x – angle in radians
n – terms in expansion, must have 2 <= n <= 20
- Returns:
sin0(x)/cos0(x)