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
type⁡4,realcons
true
type⁡2+I,realcons
false
type⁡3.5,realcons
type⁡ln⁡π,realcons
type⁡sin⁡2,realcons
type⁡undefined,realcons
type⁡∞,realcons
type⁡x2,realcons
See Also
evalf
type
type/complexcons
type/constant
type/infinity
type/numeric
Download Help Document