| MATLAB® | ![]() |
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
![]() | persistent | pie | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |