Class Infty¶
Defined in File infinity.h
Inheritance Relationships¶
Base Type¶
public SymEngine::Number(Class Number)
Class Documentation¶
-
class
SymEngine::Infty: public SymEngine::Number¶ This class holds “infinity” It includes a direction (like -infinity).
Public Functions
-
bool
is_canonical(const RCP<const Number> &num) const¶ Canonical when the direction is -1, 0 or 1.
- Return
true if canonical
-
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+zinto canonical order. This function assumes thatois the same type asthis. Use__cmp__if you want general comparison.
-
bool
is_zero() const¶ - Return
trueif0
-
bool
is_one() const¶ - Return
trueif1
-
bool
is_minus_one() const¶ - Return
trueif-1
-
bool
is_exact() const¶ - Return
trueif this number is an exact number
-
bool
is_unsigned_infinity() const¶
-
bool
is_positive_infinity() const¶
-
bool
is_negative_infinity() const¶
-
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