return the class of x - Maple 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

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

Andrational,poszero

(1)

NumericClass2.3

Andsfloat,positive,numeric

(2)

NumericClass∞

Andextended_rational,positive,∞

(3)

x:=32I

x:=32I

(4)

NumericClassx

nonrealOrposint,negint

(5)

NumericClassℜx

posint

(6)

NumericClassℑx

negint

(7)

NumericClass2I

imaginaryposint

(8)

NumericClassHFloat4.5

Andfloat8,negative,numeric

(9)

NumericClassHFloat3+5I

nonrealOrAndfloat8,negative,numeric,Andfloat8,positive,numeric

(10)

See Also

float, HFloat, Im, numeric_types, numerics, Re, whattype


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam