squiggle/packages/website/docs/Api/Math.md
2022-06-05 21:47:29 -07:00

996 B

sidebar_position title
7 Math

E

Euler's number; ≈ 2.718281828459045

number;

LN2

Natural logarithm of 2; ≈ 0.6931471805599453

number;

LN10

Natural logarithm of 10; ≈ 2.302585092994046

number;

LOG2E

Base 2 logarithm of E; ≈ 1.4426950408889634

number;

LOG10E

Base 10 logarithm of E; ≈ 0.4342944819032518

number;

PI

Pi - ratio of the circumference to the diameter of a circle; ≈ 3.141592653589793

number;

SQRT1_2

Square root of 1/2; ≈ 0.7071067811865476

number;

SQRT2

Square root of 2; ≈ 1.4142135623730951

number;

PHI

Phi is the golden ratio. 1.618033988749895

number;

TAU

Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi. 6.283185307179586

number;

Infinity

number;