MATLAB Function Reference Previous page   Next Page
pi

Ratio of a circle's circumference to its diameter,

Syntax

Description

pi returns the floating-point number nearest the value of . The expressions 4*atan(1) and imag(log(-1)) provide the same value.

Examples

The expression sin(pi) is not exactly zero because pi is not exactly .

See Also

ans, eps, i, Inf, j, NaN


Previous page  persistent pie Next page

© 1994-2005 The MathWorks, Inc.