Skip to main content

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 = #kgen.float_literal<27182818284590452353602874713526624977572470936999595749669676277|10000000000000000000000000000000000000000000000000000000000000000>: The euler constant e = 2.718281...
  • pi = #kgen.float_literal<31415926535897932384626433832795028841971693993751058209749445923|10000000000000000000000000000000000000000000000000000000000000000>: The mathematical constant π = 3.141592...
  • tau = #kgen.float_literal<31415926535897932384626433832795028841971693993751058209749445923|5000000000000000000000000000000000000000000000000000000000000000>: The mathematical constant τ = 6.283185.... Tau is a circumference of a circle (2π).