OrderedNE - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

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 or $y.  This is distinct from $x\ne y$.
 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.

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

Examples

 > $\mathrm{Unordered}\left(1,2\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{Unordered}\left(1,2I\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{Unordered}\left(1,\mathrm{Pi}\right)$
 ${\mathrm{Unordered}}{}\left({1}{,}{\mathrm{\pi }}\right)$ (3)
 > $\mathrm{OrderedNE}\left(1,2\right)$
 ${\mathrm{true}}$ (4)
 > $\mathrm{OrderedNE}\left(1,2I\right)$
 ${\mathrm{FAIL}}$ (5)
 > $\mathrm{OrderedNE}\left(1,\mathrm{Pi}\right)$
 ${\mathrm{OrderedNE}}{}\left({1}{,}{\mathrm{\pi }}\right)$ (6)