Mojo module
constants
Defines math utilities.
You can import these APIs from the math
package. For example:
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π).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?