type/realcons
check for a real constant
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
type(x, realcons)
x
-
any expression
The call type(x, realcons) checks if x is a real constant. A real constant is infinity, -infinity, or an expression for which evalf returns a floating-point number.
type/numeric, type/real_infinity
type/algebraic
type4,realcons
true
type2+I,realcons
false
type3.5,realcons
typelnπ,realcons
typesin2,realcons
typeundefined,realcons
type∞,realcons
typex2,realcons
See Also
evalf
type
type/complexcons
type/constant
type/infinity
type/numeric
Download Help Document