NumericClass
return the class of x
Calling Sequence
Parameters
Description
Thread Safety
Examples
NumericClass(x)
x
-
expression
The NumericClass(x) function returns the class of x represented as a type. The class of x is described by a Maple type that recognizes
- the computation environment, and
- the numerical type of x.
If x is complex, then NumericClass(x) returns as narrowly constrained a type as possible to recognize x. To obtain precise information about the real and imaginary part of x separately, use NumericClass(Re(x)) and NumericClass(Im(x)).
The NumericClass command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
NumericClass(0);
rational∧poszero
NumericClass(2.3);
sfloat∧positive∧numeric
NumericClass(infinity);
extended_rational∧positive∧∞
x := 3 - 2*I;
x≔3−2⁢I
NumericClass(x);
nonreal⁡posint∨negint
NumericClass(Re(x));
posint
NumericClass(Im(x));
negint
NumericClass(2*I);
imaginary⁡posint
NumericClass(HFloat(-4.5));
float8∧negative∧numeric
NumericClass(HFloat(-3+5*I));
nonreal⁡float8∧negative∧numeric∨float8∧positive∧numeric
See Also
float
HFloat
Im
numeric_types
numerics
Re
whattype
Download Help Document
What kind of issue would you like to report? (Optional)