NumericClass - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


NumericClass

return the class of x

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

NumericClass(x)

Parameters

x

-

expression

Description

• 

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)).

Thread Safety

• 

The NumericClass command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

> 

NumericClass⁡0

rational∧poszero

(1)
> 

NumericClass⁡2.3

sfloat∧positive∧numeric

(2)
> 

NumericClass⁡∞

extended_rational∧positive∧∞

(3)
> 

x≔3−2⁢I

x≔3−2⁢I

(4)
> 

NumericClass⁡x

nonreal⁡posint∨negint

(5)
> 

NumericClass⁡ℜ⁡x

posint

(6)
> 

NumericClass⁡ℑ⁡x

negint

(7)
> 

NumericClass⁡2⁢I

imaginary⁡posint

(8)
> 

NumericClass⁡HFloat⁡−4.5

float8∧negative∧numeric

(9)
> 

NumericClass⁡HFloat⁡−3+5⁢I

nonreal⁡float8∧negative∧numeric∨float8∧positive∧numeric

(10)

See Also

float

HFloat

Im

numeric_types

numerics

Re

whattype