Mathematical Constants¶
Mathematical constants.
- boring_math.special_functions.constants.infinity: complex = (inf+infj)¶
Representative of a single complex infinity.
Real valued functions will use +inf and -inf when two-sided limits exist. The positive inf will be used for the case of distinct one-sided extended real valued infinities.
- boring_math.special_functions.constants.e: float = 2.718281828459045¶
Base of the natural logarithms.
- boring_math.special_functions.constants.pi: float = 3.141592653589793¶
Ratio of a circle’s circumference to its diameter.
Also, π can be defined as the smallest positive real value
xwheree²ˣⁱ = 1orsin(x/2) = 1.This value for π is based on a continued fraction expansion due to Bill Gosper.
π = 4/(1 + 1²/(3 + 2²/(5 + 3²/(7 + 4²/(9 + 5²/(11 + …))))))