NumericClass - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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

NumericClass0

rationalposzero

(1)

NumericClass2.3

sfloatpositivenumeric

(2)

NumericClass

extended_rationalpositive

(3)

x32I

x32I

(4)

NumericClassx

nonrealposintnegint

(5)

NumericClassx

posint

(6)

NumericClassx

negint

(7)

NumericClass2I

imaginaryposint

(8)

NumericClassHFloat4.5

float8negativenumeric

(9)

NumericClassHFloat3+5I

nonrealfloat8negativenumericfloat8positivenumeric

(10)

See Also

float

HFloat

Im

numeric_types

numerics

Re

whattype