NumericClass - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Numerical Computations : Maple Numerics : Functions : NumericClass

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

rationalposzero

(1)

NumericClass(2.3);

sfloatpositivenumeric

(2)

NumericClass(infinity);

extended_rationalpositive

(3)

x := 3 - 2*I;

x32I

(4)

NumericClass(x);

nonrealposintnegint

(5)

NumericClass(Re(x));

posint

(6)

NumericClass(Im(x));

negint

(7)

NumericClass(2*I);

imaginaryposint

(8)

NumericClass(HFloat(-4.5));

float8negativenumeric

(9)

NumericClass(HFloat(-3+5*I));

nonrealfloat8negativenumericfloat8positivenumeric

(10)

See Also

float

HFloat

Im

numeric_types

numerics

Re

whattype