Class RealDouble

Inheritance Relationships

Base Type

Class Documentation

class SymEngine::RealDouble : public SymEngine::Number

RealDouble Class to hold double values.

Public Functions

RealDouble(double i)

Constructor of RealDouble class.

hash_t __hash__() const

Return

size of the hash

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 like x+y+z into canonical order. This function assumes that o is the same type as this. Use __cmp__ if you want general comparison.

bool is_positive() const

Return

true if positive

bool is_negative() const

Return

true if negative

double as_double() const

Return

self as a double

bool is_exact() const

Return

true if this number is an exact number

Evaluate &get_eval() const

Get Evaluate singleton to evaluate numerically.

bool is_zero() const

Return

true when 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

RCP<const Number> addreal(const Rational &other) const

Add RealDoubles

Parameters

RCP<const Number> addreal(const Complex &other) const

Add RealDoubles

Parameters

RCP<const Number> addreal(const RealDouble &other) const

Add RealDoubles

Parameters

RCP<const Number> add(const Number &other) const

Converts the param other appropriately and then calls addreal

RCP<const Number> subreal(const Integer &other) const

Subtract RealDoubles

Parameters

RCP<const Number> subreal(const Rational &other) const

Subtract RealDoubles

Parameters

RCP<const Number> subreal(const Complex &other) const

Subtract RealDoubles

Parameters

RCP<const Number> subreal(const RealDouble &other) const

Subtract RealDoubles

Parameters

RCP<const Number> sub(const Number &other) const

Converts the param other appropriately and then calls subreal

RCP<const Number> rsubreal(const Integer &other) const

Subtract RealDoubles

Parameters

RCP<const Number> rsubreal(const Rational &other) const

Subtract RealDoubles

Parameters

RCP<const Number> rsubreal(const Complex &other) const

Subtract RealDoubles

Parameters

RCP<const Number> rsub(const Number &other) const

Converts the param other appropriately and then calls subreal

RCP<const Number> mulreal(const Integer &other) const

Multiply RealDoubles

Parameters

RCP<const Number> mulreal(const Rational &other) const

Multiply RealDoubles

Parameters

RCP<const Number> mulreal(const Complex &other) const

Multiply RealDoubles

Parameters

RCP<const Number> mulreal(const RealDouble &other) const

Multiply RealDoubles

Parameters

RCP<const Number> mul(const Number &other) const

Converts the param other appropriately and then calls mulreal

RCP<const Number> divreal(const Integer &other) const

Divide RealDoubles

Parameters

RCP<const Number> divreal(const Rational &other) const

Divide RealDoubles

Parameters

RCP<const Number> divreal(const Complex &other) const

Divide RealDoubles

Parameters

RCP<const Number> divreal(const RealDouble &other) const

Divide RealDoubles

Parameters

RCP<const Number> div(const Number &other) const

Converts the param other appropriately and then calls divreal

RCP<const Number> rdivreal(const Integer &other) const

Divide RealDoubles

Parameters

RCP<const Number> rdivreal(const Rational &other) const

Divide RealDoubles

Parameters

RCP<const Number> rdivreal(const Complex &other) const

Divide RealDoubles

Parameters

RCP<const Number> rdiv(const Number &other) const

Converts the param other appropriately and then calls divreal

RCP<const Number> powreal(const Integer &other) const

Raise RealDouble to power other

Parameters

RCP<const Number> powreal(const Rational &other) const

Raise RealDouble to power other

Parameters

RCP<const Number> powreal(const Complex &other) const

Raise RealDouble to power other

Parameters

RCP<const Number> powreal(const RealDouble &other) const

Raise RealDouble to power other

Parameters

RCP<const Number> pow(const Number &other) const

Converts the param other appropriately and then calls powreal

RCP<const Number> rpowreal(const Integer &other) const

Raise other to power RealDouble

Parameters

RCP<const Number> rpowreal(const Rational &other) const

Raise other to power RealDouble

Parameters

RCP<const Number> rpowreal(const Complex &other) const

Raise other to power RealDouble

Parameters

RCP<const Number> rpow(const Number &other) const

Converts the param other appropriately and then calls powreal

Public Members

double i