53 bool info(
unsigned inf)
const override;
54 size_t nops()
const override;
55 ex op(
size_t i)
const override;
58 int degree(
const ex & s)
const override;
60 ex coeff(
const ex & s,
int n = 1)
const override;
65 ex subs(
const exmap & m,
unsigned options = 0)
const override;
66 bool has(
const ex & other,
unsigned options = 0)
const override;
82 ex expand(
unsigned options = 0)
const override;
89 void print_power(
const print_context & c,
const char *powersymbol,
const char *openbrace,
const char *closebrace,
unsigned level)
const;
119template<
typename T1,
typename T2>
120inline ex pow(
const T1 & b,
const T2 & e)
Archiving of GiNaC expressions.
Interface to GiNaC's ABC.
This class stores all properties needed to record/retrieve the state of one object of class basic (or...
Lightweight wrapper for GiNaC's symbolic objects.
This class is a wrapper around CLN-numbers within the GiNaC class hierarchy.
This class holds a two-component object, a basis and and exponent representing exponentiation.
static ex expand_mul(const mul &m, const numeric &n, unsigned options, bool from_expand=false)
Expand factors of m in m^n where m is a mul and n is an integer.
void do_print_dflt(const print_dflt &c, unsigned level) const
void do_print_csrc(const print_csrc &c, unsigned level) const
static ex expand_add(const add &a, long n, unsigned options)
expand a^n where a is an add and n is a positive integer.
void read_archive(const archive_node &n, lst &syms) override
Read (a.k.a.
static ex expand_add_2(const add &a, unsigned options)
Special case of power::expand_add.
ex derivative(const symbol &s) const override
Implementation of ex::diff() for a power.
ex map(map_function &f) const override
Construct new expression by applying the specified function to all sub-expressions (one level only,...
void do_print_python(const print_python &c, unsigned level) const
void print_power(const print_context &c, const char *powersymbol, const char *openbrace, const char *closebrace, unsigned level) const
void do_print_python_repr(const print_python_repr &c, unsigned level) const
unsigned precedence() const override
Return relative operator precedence (for parenthezing output).
power(const ex &lh, const ex &rh)
void do_print_latex(const print_latex &c, unsigned level) const
power(const ex &lh, const T &rh)
return_type_t return_type_tinfo() const override
bool info(unsigned inf) const override
Information about the object.
ex eval_ncmul(const exvector &v) const override
void do_print_csrc_cl_N(const print_csrc_cl_N &c, unsigned level) const
unsigned return_type() const override
Base class for print_contexts.
Context for C source output using CLN numbers.
Base context for C source output.
Context for default (ginsh-parsable) output.
Context for latex-parsable output.
Context for python-parsable output.
Context for python pretty-print output.
This class holds a relation consisting of two expressions and a logical relation between them.
Interface to GiNaC's light-weight expression handles.
ex real_part(const ex &thisex)
const numeric pow(const numeric &x, const numeric &y)
bool is_polynomial(const ex &thisex, const ex &vars)
container< std::list > lst
ex to_rational(const ex &thisex, exmap &repl)
std::map< ex, ex, ex_is_less > exmap
B & dynallocate(Args &&... args)
Constructs a new (class basic or derived) B object on the heap.
GINAC_DECLARE_UNARCHIVER(add)
const numeric sqrt(const numeric &x)
Numeric square root.
ex series(const ex &thisex, const ex &r, int order, unsigned options=0)
ex conjugate(const ex &thisex)
ex subs(const ex &thisex, const exmap &m, unsigned options=0)
ex eval(const ex &thisex)
int degree(const ex &thisex, const ex &s)
int ldegree(const ex &thisex, const ex &s)
ex evalf(const ex &thisex)
ex normal(const ex &thisex)
ex op(const ex &thisex, size_t i)
ex coeff(const ex &thisex, const ex &s, int n=1)
ex evalm(const ex &thisex)
bool has(const ex &thisex, const ex &pattern, unsigned options=0)
std::vector< ex > exvector
size_t nops(const ex &thisex)
ex imag_part(const ex &thisex)
ex to_polynomial(const ex &thisex, exmap &repl)
ex expand(const ex &thisex, unsigned options=0)
#define GINAC_DECLARE_REGISTERED_CLASS(classname, supername)
Macro for inclusion in the declaration of each registered class.
Function object for map().
To distinguish between different kinds of non-commutative objects.