Skip to main content
Log in

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

alias e = 2.7182818284590451

The euler constant e = 2.718281...

log2e

alias log2e = 1.4426950408889634

log2e = log2(e), where e is Euler's constant.

pi

alias pi = 3.1415926535897931

The mathematical constant π = 3.141592...

tau

alias tau = 6.2831853071795862

The mathematical constant τ = 6.283185.... Tau is a circumference of a circle (2π).