Return a scalar, matrix, or N-dimensional array whose elements are all equal to the ratio of the circumference of a circle to its diameter.
Internally, pi
is computed as ‘4.0 * atan (1.0)’.
When called with no arguments, return a scalar with the value of pi.
When called with a single argument, return a square matrix with the dimension specified.
When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions.
The optional argument class specifies the return type and may be
either "double"
or "single"
.
See also: e, I.
Package: octave