Class RealDouble¶
Defined in File real_double.h
Inheritance Relationships¶
Base Type¶
public SymEngine::Number(Class Number)
Class Documentation¶
-
class
SymEngine::RealDouble: public SymEngine::Number¶ RealDouble Class to hold double values.
Public Functions
-
RealDouble(double i)¶ Constructor of RealDouble class.
-
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_positive() const¶ - Return
trueif positive
-
bool
is_negative() const¶ - Return
trueif negative
-
double
as_double() const¶ - Return
self as a double
-
bool
is_exact() const¶ - Return
trueif this number is an exact number
-
bool
is_zero() const¶ - Return
truewhen equals to 0
-
bool
is_one() const¶ - Return
false
-
bool
is_minus_one() const¶ - Return
false
-
bool
is_complex() const¶ - Return
false
-
RCP<const Number>
addreal(const Integer &other) const¶ Add RealDoubles
- Parameters
other: of type Integer
-
RCP<const Number>
addreal(const Rational &other) const¶ Add RealDoubles
- Parameters
other: of type Rational
-
RCP<const Number>
addreal(const Complex &other) const¶ Add RealDoubles
- Parameters
other: of type Complex
-
RCP<const Number>
addreal(const RealDouble &other) const¶ Add RealDoubles
- Parameters
other: of type RealDouble
-
RCP<const Number>
add(const Number &other) const¶ Converts the param
otherappropriately and then callsaddreal
-
RCP<const Number>
subreal(const Integer &other) const¶ Subtract RealDoubles
- Parameters
other: of type Integer
-
RCP<const Number>
subreal(const Rational &other) const¶ Subtract RealDoubles
- Parameters
other: of type Rational
-
RCP<const Number>
subreal(const Complex &other) const¶ Subtract RealDoubles
- Parameters
other: of type Complex
-
RCP<const Number>
subreal(const RealDouble &other) const¶ Subtract RealDoubles
- Parameters
other: of type RealDouble
-
RCP<const Number>
sub(const Number &other) const¶ Converts the param
otherappropriately and then callssubreal
-
RCP<const Number>
rsubreal(const Integer &other) const¶ Subtract RealDoubles
- Parameters
other: of type Integer
-
RCP<const Number>
rsubreal(const Rational &other) const¶ Subtract RealDoubles
- Parameters
other: of type Rational
-
RCP<const Number>
rsubreal(const Complex &other) const¶ Subtract RealDoubles
- Parameters
other: of type Complex
-
RCP<const Number>
rsub(const Number &other) const¶ Converts the param
otherappropriately and then callssubreal
-
RCP<const Number>
mulreal(const Integer &other) const¶ Multiply RealDoubles
- Parameters
other: of type Integer
-
RCP<const Number>
mulreal(const Rational &other) const¶ Multiply RealDoubles
- Parameters
other: of type Rational
-
RCP<const Number>
mulreal(const Complex &other) const¶ Multiply RealDoubles
- Parameters
other: of type Complex
-
RCP<const Number>
mulreal(const RealDouble &other) const¶ Multiply RealDoubles
- Parameters
other: of type RealDouble
-
RCP<const Number>
mul(const Number &other) const¶ Converts the param
otherappropriately and then callsmulreal
-
RCP<const Number>
divreal(const Integer &other) const¶ Divide RealDoubles
- Parameters
other: of type Integer
-
RCP<const Number>
divreal(const Rational &other) const¶ Divide RealDoubles
- Parameters
other: of type Rational
-
RCP<const Number>
divreal(const Complex &other) const¶ Divide RealDoubles
- Parameters
other: of type Complex
-
RCP<const Number>
divreal(const RealDouble &other) const¶ Divide RealDoubles
- Parameters
other: of type RealDouble
-
RCP<const Number>
div(const Number &other) const¶ Converts the param
otherappropriately and then callsdivreal
-
RCP<const Number>
rdivreal(const Integer &other) const¶ Divide RealDoubles
- Parameters
other: of type Integer
-
RCP<const Number>
rdivreal(const Rational &other) const¶ Divide RealDoubles
- Parameters
other: of type Rational
-
RCP<const Number>
rdivreal(const Complex &other) const¶ Divide RealDoubles
- Parameters
other: of type Complex
-
RCP<const Number>
rdiv(const Number &other) const¶ Converts the param
otherappropriately and then callsdivreal
-
RCP<const Number>
powreal(const Integer &other) const¶ Raise RealDouble to power
other- Parameters
other: of type Integer
-
RCP<const Number>
powreal(const Rational &other) const¶ Raise RealDouble to power
other- Parameters
other: of type Rational
-
RCP<const Number>
powreal(const Complex &other) const¶ Raise RealDouble to power
other- Parameters
other: of type Complex
-
RCP<const Number>
powreal(const RealDouble &other) const¶ Raise RealDouble to power
other- Parameters
other: of type RealDouble
-
RCP<const Number>
pow(const Number &other) const¶ Converts the param
otherappropriately and then callspowreal
-
RCP<const Number>
rpowreal(const Integer &other) const¶ Raise
otherto power RealDouble- Parameters
other: of type Integer
-
RCP<const Number>
rpowreal(const Rational &other) const¶ Raise
otherto power RealDouble- Parameters
other: of type Rational
-
RCP<const Number>
rpowreal(const Complex &other) const¶ Raise
otherto power RealDouble- Parameters
other: of type Complex
Public Members
-
double
i¶
-