Class Derivative

Inheritance Relationships

Base Type

Class Documentation

class SymEngine::Derivative : public SymEngine::Basic

Derivative operator Derivative(f, [x, y, …]) represents a derivative of f with respect to x, y, and so on.

Public Functions

Derivative(const RCP<const Basic> &arg, const multiset_basic &x)

x, y, …

hash_t __hash__() const

Calculates the hash of the given SymEngine class. Use Basic.hash() which gives a cached version of the hash.

Return

64-bit integer value for the hash

bool __eq__(const Basic &o) const

true if this is equal to o. Deprecated: Use eq(const Basic &a, const Basic &b) non-member method

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.

RCP<const Basic> get_arg() const
const multiset_basic &get_symbols() const
vec_basic get_args() const

Returns the list of arguments.

bool is_canonical(const RCP<const Basic> &arg, const multiset_basic &x) const

Public Static Functions

RCP<const Derivative> create(const RCP<const Basic> &arg, const multiset_basic &x)