Class Number¶
Defined in File number.h
Inheritance Relationships¶
Base Type¶
public SymEngine::Basic
(Class Basic)
Derived Types¶
public SymEngine::ComplexBase
(Class ComplexBase)public SymEngine::Infty
(Class Infty)public SymEngine::Integer
(Class Integer)public SymEngine::NaN
(Class NaN)public SymEngine::NumberWrapper
(Class NumberWrapper)public SymEngine::Rational
(Class Rational)public SymEngine::RealDouble
(Class RealDouble)public SymEngine::RealMPFR
(Class RealMPFR)public SymEngine::SeriesCoeffInterface
(Class SeriesCoeffInterface)
Class Documentation¶
-
class
SymEngine
::
Number
: public SymEngine::Basic¶ Subclassed by SymEngine::ComplexBase, SymEngine::Infty, SymEngine::Integer, SymEngine::NaN, SymEngine::NumberWrapper, SymEngine::Rational, SymEngine::RealDouble, SymEngine::RealMPFR, SymEngine::SeriesCoeffInterface
Public Functions
-
bool
is_zero
() const = 0¶ - Return
true if
0
-
bool
is_one
() const = 0¶ - Return
true if
1
-
bool
is_minus_one
() const = 0¶ - Return
true if
-1
-
bool
is_negative
() const = 0¶ - Return
true if negative
-
bool
is_positive
() const = 0¶ - Return
true if positive
-
bool
is_complex
() const = 0¶ - Return
true if a complex number
-
bool
is_exact
() const¶ return true if the number is an exact representation
-
bool
is_exact_zero
() const¶ - Return
true if the number is equal to 0 and not an approximation
-
bool
is_perfect_power
(bool is_expected = false) const¶
-
bool