Floating point functions at x=0¶
Floating point special functions about a point.
- boring_math.special_functions.float0.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 >= 20
- Returns:
Taylor series expansion of
eˣcentered atx = 0
- boring_math.special_functions.float0.sin0(x: float, /, n: int = 22) float¶
Partially factored Taylor expansion of sine about
x = 0.Note
Best if
-2π <= x <= 2π.- 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.float0.cos0(x: float, /, n: int = 22) float¶
Partially factored Taylor expansion of cosine about
x = 0.Note
Best if
-2π <= x <= 2π.- Parameters:
x – angle in radians
n – terms in expansion, must have
2 <= n <= 20
- Returns:
Taylor series expansion of
cosine(x)centered atx = 0
- boring_math.special_functions.float0.tan0(x: float, /, n: int = 22) float¶
Tangent centered about x = 0.
Note
Best if
-π <= x <= π.- Parameters:
x – angle in radians
n – terms in expansion, must have
2 <= n <= 20
- Returns:
sin0(x)/cos0(x)