| MATLAB Function Reference | Search  Help Desk |
| pi | Examples See Also |
Ratio of a circle's circumference to its diameter, 
pi
pi
returns the floating-point number nearest the value of
. The expressions 4*atan(1) and imag(log(-1)) provide the same value.
The expression sin(pi) is not exactly zero because pi is not exactly
:
sin(pi) ans = 1.2246e-16
ans The most recent answer
eps Floating-point relative accuracy
i Imaginary unit
Inf Infinity
j Imaginary unit
NaN Not-a-Number