Mojo module
constants
Defines math utilities.
You can import these APIs from the math
package. For example:
from math import pi
from math import pi
Aliases
-
e = 2.7182818284590451
: The euler constant e = 2.718281... -
log2e = 1.4426950408889634
: log2e = log2(e), where e is Euler's constant. -
pi = 3.1415926535897931
: The mathematical constant π = 3.141592... -
tau = 6.2831853071795862
: The mathematical constant τ = 6.283185.... Tau is a circumference of a circle (2π).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!