DADiSP Worksheet Functions > Function Categories > Series and Scalar Math > PI

 

PI

Purpose:

Macro. Returns the value of π.

Syntax:

PI

Expansion:

3.1415926535897932384626

Example:

cos(pi)

 

returns -1.0.

Example:

real(exp(pi * i))

 

returns -1.

Example:

4*atan(1) == pi

 

returns 1.

Remarks

π is the ratio of the circumference of a circle to its diameter.

 

The remarkable Euler Identity relates e, i, π, 0 and 1 as follows:

 

e π i + 1 = 0

See Also:

DEG

E

GAMM

INF

LN

PHI

SETDEGREE