pi
Symbol for pi.
Syntax
R = pi returns a scalar.
R = pi(n) returns an n by n matrix.
R = pi(m, n) returns an m by n matrix.
R = pi(d1, d2, ... dN) returns an N dimensional matrix.
R = pi([d1, d2, ... dN]) returns an N dimensional matrix.
Inputs
- m, n, d1, d2, ..., dN
- Dimensions of the matrix to be returned.
Outputs
- R
- The returned matrix of pi values.
Examples
R = pi
R = 3.14159265
R = pi(3)
R = [Matrix] 3 x 3
3.14159 3.14159 3.14159
3.14159 3.14159 3.14159
3.14159 3.14159 3.14159
R = pi([2,3])
a = [Matrix] 2 x 3
3.14159 3.14159 3.14159
3.14159 3.14159 3.14159
Comments
pi can be computed by 4.0 * atan(1.0).