Class NaN¶
Defined in File nan.h
Inheritance Relationships¶
Base Type¶
public SymEngine::Number
(Class Number)
Class Documentation¶
-
class
SymEngine
::
NaN
: public SymEngine::Number¶ This serves as a place holder for numeric values that are indeterminate. Most operations on NaN, produce another NaN.
Public Functions
-
bool
__eq__
(const Basic &o) const¶ Equality comparator
- Return
whether the 2 objects are equal
- Parameters
o
: - Object to be compared with
-
int
compare
(const Basic &o) const¶ Returns -1, 0, 1 for
this < o, this == o, this > o
. This method is used when you want to sort things likex+y+z
into canonical order. This function assumes thato
is the same type asthis
. Use__cmp__
if you want general comparison.
-
bool
is_zero
() const¶ - Return
true
if0
-
bool
is_one
() const¶ - Return
true
if1
-
bool
is_minus_one
() const¶ - Return
true
if-1
-
bool
is_positive
() const¶ - Return
true if positive
-
bool
is_negative
() const¶ - Return
true if negative
-
bool
is_complex
() const¶ - Return
true if a complex number
-
bool
is_exact
() const¶ return true if the number is an exact representation
-
bool