Functions List


Constants and Variables


pi and -pi

The variable pi returns the value of π and the variable –pi returns the value of –π.

Example:

> pi
3.141592653589793

> -pi
-3.141592653589793



2pi and -2pi

The variable 2pi returns the value of and the variable –2pi returns the value of –2π.

Example:

> 2pi
6.283185307179586

> -2pi
-6.283185307179586



3pi and -3pi

The variable 3pi returns the value of and the variable –3pi returns the value of –3π.

Example:

> 3pi
9.42477796076938

> 3pi
-9.42477796076938



4pi and -4pi

The variable 4pi returns the value of and the variable –4pi returns the value of –4π.

Example:

> 4pi
12.566370614359172

> -4pi
-12.566370614359172



pi/2 and -pi/2

The variable pi/2 returns the value of π/2 and the variable -pi/2 returns the value of –π/2.

Example:

> pi/2
1.5707963267948966

> -pi/2
-1.5707963267948966



pi/3 and -pi/3

The variable pi/3 returns the value of π/3 and the variable -pi/3 returns the value of –π/3.

Example:

> pi/3
1.0471975511965976

> -pi/3
-1.0471975511965976



pi/4 and -pi/4

The variable pi/4 returns the value of π/4 and the variable -pi/4 returns the value of –π/4.

Example:

> pi/4
0.7853981633974483

> -pi/4
-0.7853981633974483



pi/6 and -pi/6

The variable pi/6 returns the value of π/6 and the variable -pi/6 returns the value of –π/6.

Example:

> pi/6
0.5235987755982988

> -pi/6
-0.5235987755982988



3pi/2 and -3pi/2

The variable 3pi/2 returns the value of 3π/2 and the variable -3pi/2 returns the value of –π/6.

Example:

> 3pi/2
4.71238898038469

> -3pi/2
-4.71238898038469
Top