Main Content

Constants and Test Matrices

Pi, Not-a-Number, infinity; Hadamard, Companion, Pascal, and other specialized matrices

Functions

eps Floating-point relative accuracy
flintmax Largest consecutive integer in floating-point format
i Imaginary unit
j Imaginary unit
Inf Create array of allInfvalues
pi Ratio of circle's circumference to its diameter
NaN Create array of allNaNvalues
allfinite Determine if all array elements are finite
anynan Determine if any array element isNaN
isfinite Determine which array elements are finite
isinf Determine which array elements are infinite
isnan Determine which array elements are NaN
compan Companion matrix
gallery Test matrices
hadamard Hadamard matrix
hankel Hankel matrix
hilb Hilbert matrix
invhilb Inverse of Hilbert matrix
magic Magic square
pascal Pascal matrix
rosser Classic symmetric eigenvalue test problem
toeplitz Toeplitz matrix
vander Vandermonde matrix
wilkinson Wilkinson's eigenvalue test matrix

Topics