test if x is unordered with y - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Numerical Computations : Maple Numerics : Predicates : Unordered

Unordered - test if x is unordered with y

OrderedNE - test if x and y are ordered

Calling Sequence

Unordered(x, y)

OrderedNE(x, y)

Parameters

x

-

numeric type

y

-

numeric type

Description

• 

The Unordered(x, y) function returns true if x is unordered with y, false if x is ordered with y, and unevaluated otherwise.

• 

The OrderedNE(x, y) function returns true only if x<y or y<x.  This is distinct from xy.

  

This function returns unevaluated if either x or y is symbolic.

  

The OrderedNE(x, y) function signals Invalid (returning the default value FAIL) if x is a finite or infinite nonreal, or y is a finite or infinite nonreal.

Thread Safety

• 

The Unordered and OrderedNE commands are thread-safe as of Maple 15.

• 

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

Examples

Unordered1&comma;2

false

(1)

Unordered1&comma;2I

true

(2)

Unordered1&comma;&pi;

Unordered1&comma;&pi;

(3)

OrderedNE1&comma;2

true

(4)

OrderedNE1&comma;2I

FAIL

(5)

OrderedNE1&comma;&pi;

OrderedNE1&comma;&pi;

(6)

See Also

equation, exceptions, float, numeric_types, type[nonreal]


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