Class Pow

Inheritance Relationships

Base Type

Class Documentation

class SymEngine::Pow : public SymEngine::Basic

Public Functions

Pow(const RCP<const Basic> &base, const RCP<const Basic> &exp)

base**exp

Pow Constructor

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_canonical(const Basic &base, const Basic &exp) const

Return

true if canonical

RCP<const Basic> get_base() const

Return

base of base**exp

RCP<const Basic> get_exp() const

Return

exp of base**exp

vec_basic get_args() const

Returns the list of arguments.