Real valued (floating point)

Real valued

Real valued special functions.

boring_math.special_functions.float.cos0(x: float, /, n: int = 20) 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.exp0(x: float, /, n: int = 20) float

Partially factored Taylor expansion of exp about x = 0.

Parameters:
  • x – independent variable

  • n – terms in expansion, must have n >= 20

Returns:

Taylor series expansion of eˣ centered at x = 0

boring_math.special_functions.float.sin0(x: float, /, n: int = 20) 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.tan0(x: float, /, n: int = 20) 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)