GiNaC 1.8.7
|
Sum of expressions. More...
#include <add.h>
Public Member Functions | |
add (const ex &lh, const ex &rh) | |
add (const exvector &v) | |
add (const epvector &v) | |
add (const epvector &v, const ex &oc) | |
add (epvector &&v) | |
add (epvector &&v, const ex &oc) | |
unsigned | precedence () const override |
Return relative operator precedence (for parenthezing output). More... | |
bool | info (unsigned inf) const override |
Information about the object. More... | |
bool | is_polynomial (const ex &var) const override |
Check whether this is a polynomial in the given variables. More... | |
int | degree (const ex &s) const override |
Return degree of highest power in object s. More... | |
int | ldegree (const ex &s) const override |
Return degree of lowest power in object s. More... | |
ex | coeff (const ex &s, int n=1) const override |
Return coefficient of degree n in object s. More... | |
ex | eval () const override |
Perform automatic term rewriting rules in this class. More... | |
ex | evalm () const override |
Evaluate sums, products and integer powers of matrices. More... | |
ex | series (const relational &r, int order, unsigned options=0) const override |
Implementation of ex::series() for sums. More... | |
ex | normal (exmap &repl, exmap &rev_lookup, lst &modifier) const override |
Implementation of ex::normal() for a sum. More... | |
numeric | integer_content () const override |
ex | smod (const numeric &xi) const override |
Apply symmetric modular homomorphism to an expanded multivariate polynomial. More... | |
numeric | max_coefficient () const override |
Implementation ex::max_coefficient(). More... | |
ex | conjugate () const override |
ex | real_part () const override |
ex | imag_part () const override |
exvector | get_free_indices () const override |
Return a vector containing the free indices of an expression. More... | |
ex | eval_ncmul (const exvector &v) const override |
Public Member Functions inherited from GiNaC::expairseq | |
expairseq (const ex &lh, const ex &rh) | |
expairseq (const exvector &v) | |
expairseq (const epvector &v, const ex &oc, bool do_index_renaming=false) | |
expairseq (epvector &&vp, const ex &oc, bool do_index_renaming=false) | |
unsigned | precedence () const override |
Return relative operator precedence (for parenthezing output). More... | |
bool | info (unsigned inf) const override |
Information about the object. More... | |
size_t | nops () const override |
Number of operands/members. More... | |
ex | op (size_t i) const override |
Return operand/member at position i. More... | |
ex | map (map_function &f) const override |
Construct new expression by applying the specified function to all sub-expressions (one level only, not recursively). More... | |
ex | eval () const override |
Perform coefficient-wise automatic term rewriting rules in this class. More... | |
ex | to_rational (exmap &repl) const override |
Implementation of ex::to_rational() for expairseqs. More... | |
ex | to_polynomial (exmap &repl) const override |
Implementation of ex::to_polynomial() for expairseqs. More... | |
bool | match (const ex &pattern, exmap &repl_lst) const override |
Check whether the expression matches a given pattern. More... | |
ex | subs (const exmap &m, unsigned options=0) const override |
Substitute a set of objects by arbitrary expressions. More... | |
ex | conjugate () const override |
void | archive (archive_node &n) const override |
Save (serialize) the object into archive node. More... | |
void | read_archive (const archive_node &n, lst &syms) override |
Load (deserialize) the object from an archive node. More... | |
Public Member Functions inherited from GiNaC::basic | |
virtual | ~basic () |
basic destructor, virtual because class ex will delete objects of derived classes via a basic*. More... | |
basic (const basic &other) | |
const basic & | operator= (const basic &other) |
basic assignment operator: the other object might be of a derived class. More... | |
virtual basic * | duplicate () const |
Create a clone of this object on the heap. More... | |
virtual ex | eval () const |
Perform automatic non-interruptive term rewriting rules. More... | |
virtual ex | evalf () const |
Evaluate object numerically. More... | |
virtual ex | evalm () const |
Evaluate sums, products and integer powers of matrices. More... | |
virtual ex | eval_integ () const |
Evaluate integrals, if result is known. More... | |
virtual ex | eval_indexed (const basic &i) const |
Perform automatic symbolic evaluations on indexed expression that contains this object as the base expression. More... | |
virtual void | print (const print_context &c, unsigned level=0) const |
Output to stream. More... | |
virtual void | dbgprint () const |
Little wrapper around print to be called within a debugger. More... | |
virtual void | dbgprinttree () const |
Little wrapper around printtree to be called within a debugger. More... | |
virtual unsigned | precedence () const |
Return relative operator precedence (for parenthezing output). More... | |
virtual bool | info (unsigned inf) const |
Information about the object. More... | |
virtual size_t | nops () const |
Number of operands/members. More... | |
virtual ex | op (size_t i) const |
Return operand/member at position i. More... | |
virtual ex | operator[] (const ex &index) const |
virtual ex | operator[] (size_t i) const |
virtual ex & | let_op (size_t i) |
Return modifiable operand/member at position i. More... | |
virtual ex & | operator[] (const ex &index) |
virtual ex & | operator[] (size_t i) |
virtual bool | has (const ex &other, unsigned options=0) const |
Test for occurrence of a pattern. More... | |
virtual bool | match (const ex &pattern, exmap &repls) const |
Check whether the expression matches a given pattern. More... | |
virtual ex | subs (const exmap &m, unsigned options=0) const |
Substitute a set of objects by arbitrary expressions. More... | |
virtual ex | map (map_function &f) const |
Construct new expression by applying the specified function to all sub-expressions (one level only, not recursively). More... | |
virtual void | accept (GiNaC::visitor &v) const |
virtual bool | is_polynomial (const ex &var) const |
Check whether this is a polynomial in the given variables. More... | |
virtual int | degree (const ex &s) const |
Return degree of highest power in object s. More... | |
virtual int | ldegree (const ex &s) const |
Return degree of lowest power in object s. More... | |
virtual ex | coeff (const ex &s, int n=1) const |
Return coefficient of degree n in object s. More... | |
virtual ex | expand (unsigned options=0) const |
Expand expression, i.e. More... | |
virtual ex | collect (const ex &s, bool distributed=false) const |
Sort expanded expression in terms of powers of some object(s). More... | |
virtual ex | series (const relational &r, int order, unsigned options=0) const |
Default implementation of ex::series(). More... | |
virtual ex | normal (exmap &repl, exmap &rev_lookup, lst &modifier) const |
Default implementation of ex::normal(). More... | |
virtual ex | to_rational (exmap &repl) const |
Default implementation of ex::to_rational(). More... | |
virtual ex | to_polynomial (exmap &repl) const |
virtual numeric | integer_content () const |
virtual ex | smod (const numeric &xi) const |
Apply symmetric modular homomorphism to an expanded multivariate polynomial. More... | |
virtual numeric | max_coefficient () const |
Implementation ex::max_coefficient(). More... | |
virtual exvector | get_free_indices () const |
Return a vector containing the free indices of an expression. More... | |
virtual ex | add_indexed (const ex &self, const ex &other) const |
Add two indexed expressions. More... | |
virtual ex | scalar_mul_indexed (const ex &self, const numeric &other) const |
Multiply an indexed expression with a scalar. More... | |
virtual bool | contract_with (exvector::iterator self, exvector::iterator other, exvector &v) const |
Try to contract two indexed expressions that appear in the same product. More... | |
virtual unsigned | return_type () const |
virtual return_type_t | return_type_tinfo () const |
virtual ex | conjugate () const |
virtual ex | real_part () const |
virtual ex | imag_part () const |
template<class T > | |
void | print_dispatch (const print_context &c, unsigned level) const |
Like print(), but dispatch to the specified class. More... | |
void | print_dispatch (const registered_class_info &ri, const print_context &c, unsigned level) const |
Like print(), but dispatch to the specified class. More... | |
virtual void | archive (archive_node &n) const |
Save (serialize) the object into archive node. More... | |
virtual void | read_archive (const archive_node &n, lst &syms) |
Load (deserialize) the object from an archive node. More... | |
ex | subs_one_level (const exmap &m, unsigned options) const |
Helper function for subs(). More... | |
ex | diff (const symbol &s, unsigned nth=1) const |
Default interface of nth derivative ex::diff(s, n). More... | |
int | compare (const basic &other) const |
Compare objects syntactically to establish canonical ordering. More... | |
bool | is_equal (const basic &other) const |
Test for syntactic equality. More... | |
const basic & | hold () const |
Stop further evaluation. More... | |
unsigned | gethash () const |
const basic & | setflag (unsigned f) const |
Set some status_flags. More... | |
const basic & | clearflag (unsigned f) const |
Clear some status_flags. More... | |
Public Member Functions inherited from GiNaC::refcounted | |
refcounted () noexcept | |
unsigned int | add_reference () noexcept |
unsigned int | remove_reference () noexcept |
unsigned int | get_refcount () const noexcept |
void | set_refcount (unsigned int r) noexcept |
Protected Member Functions | |
ex | derivative (const symbol &s) const override |
Implementation of ex::diff() for a sum. More... | |
unsigned | return_type () const override |
return_type_t | return_type_tinfo () const override |
ex | thisexpairseq (const epvector &v, const ex &oc, bool do_index_renaming=false) const override |
Create an object of this type. More... | |
ex | thisexpairseq (epvector &&vp, const ex &oc, bool do_index_renaming=false) const override |
expair | split_ex_to_pair (const ex &e) const override |
Form an expair from an ex, using the corresponding semantics. More... | |
expair | combine_ex_with_coeff_to_pair (const ex &e, const ex &c) const override |
expair | combine_pair_with_coeff_to_pair (const expair &p, const ex &c) const override |
ex | recombine_pair_to_ex (const expair &p) const override |
Form an ex out of an expair, using the corresponding semantics. More... | |
ex | expand (unsigned options=0) const override |
Expand expression, i.e. More... | |
void | print_add (const print_context &c, const char *openbrace, const char *closebrace, const char *mul_sym, unsigned level) const |
void | do_print (const print_context &c, unsigned level) const |
void | do_print_latex (const print_latex &c, unsigned level) const |
void | do_print_csrc (const print_csrc &c, unsigned level) const |
void | do_print_python_repr (const print_python_repr &c, unsigned level) const |
Protected Member Functions inherited from GiNaC::expairseq | |
bool | is_equal_same_type (const basic &other) const override |
Returns true if two objects of same type are equal. More... | |
unsigned | return_type () const override |
unsigned | calchash () const override |
Compute the hash value of an object and if it makes sense to store it in the objects status_flags, do so. More... | |
ex | expand (unsigned options=0) const override |
Expand expression, i.e. More... | |
virtual ex | thisexpairseq (const epvector &v, const ex &oc, bool do_index_renaming=false) const |
Create an object of this type. More... | |
virtual ex | thisexpairseq (epvector &&vp, const ex &oc, bool do_index_renaming=false) const |
virtual void | printseq (const print_context &c, char delim, unsigned this_precedence, unsigned upper_precedence) const |
virtual void | printpair (const print_context &c, const expair &p, unsigned upper_precedence) const |
virtual expair | split_ex_to_pair (const ex &e) const |
Form an expair from an ex, using the corresponding semantics. More... | |
virtual expair | combine_ex_with_coeff_to_pair (const ex &e, const ex &c) const |
virtual expair | combine_pair_with_coeff_to_pair (const expair &p, const ex &c) const |
virtual ex | recombine_pair_to_ex (const expair &p) const |
Form an ex out of an expair, using the corresponding semantics. More... | |
virtual bool | expair_needs_further_processing (epp it) |
virtual ex | default_overall_coeff () const |
virtual void | combine_overall_coeff (const ex &c) |
virtual void | combine_overall_coeff (const ex &c1, const ex &c2) |
virtual bool | can_make_flat (const expair &p) const |
void | do_print (const print_context &c, unsigned level) const |
void | do_print_tree (const print_tree &c, unsigned level) const |
void | construct_from_2_ex (const ex &lh, const ex &rh) |
void | construct_from_2_expairseq (const expairseq &s1, const expairseq &s2) |
void | construct_from_expairseq_ex (const expairseq &s, const ex &e) |
void | construct_from_exvector (const exvector &v) |
void | construct_from_epvector (const epvector &v, bool do_index_renaming=false) |
void | construct_from_epvector (epvector &&v, bool do_index_renaming=false) |
void | make_flat (const exvector &v) |
Combine this expairseq with argument exvector. More... | |
void | make_flat (const epvector &v, bool do_index_renaming=false) |
Combine this expairseq with argument epvector. More... | |
void | canonicalize () |
Brings this expairseq into a sorted (canonical) form. More... | |
void | combine_same_terms_sorted_seq () |
Compact a presorted expairseq by combining all matching expairs to one each. More... | |
bool | is_canonical () const |
Check if this expairseq is in sorted (canonical) form. More... | |
epvector | expandchildren (unsigned options) const |
Member-wise expand the expairs in this sequence. More... | |
epvector | evalchildren () const |
Member-wise evaluate the expairs in this sequence. More... | |
epvector | subschildren (const exmap &m, unsigned options=0) const |
Member-wise substitute in this sequence. More... | |
Protected Member Functions inherited from GiNaC::basic | |
basic () | |
virtual ex | eval_ncmul (const exvector &v) const |
virtual bool | match_same_type (const basic &other) const |
Returns true if the attributes of two objects are similar enough for a match. More... | |
virtual ex | derivative (const symbol &s) const |
Default implementation of ex::diff(). More... | |
virtual int | compare_same_type (const basic &other) const |
Returns order relation between two objects of same type. More... | |
virtual bool | is_equal_same_type (const basic &other) const |
Returns true if two objects of same type are equal. More... | |
virtual unsigned | calchash () const |
Compute the hash value of an object and if it makes sense to store it in the objects status_flags, do so. More... | |
void | ensure_if_modifiable () const |
Ensure the object may be modified without hurting others, throws if this is not the case. More... | |
void | do_print (const print_context &c, unsigned level) const |
Default output to stream. More... | |
void | do_print_tree (const print_tree &c, unsigned level) const |
Tree output to stream. More... | |
void | do_print_python_repr (const print_python_repr &c, unsigned level) const |
Python parsable output to stream. More... | |
Friends | |
class | mul |
class | power |
Additional Inherited Members | |
Protected Attributes inherited from GiNaC::expairseq | |
epvector | seq |
ex | overall_coeff |
Protected Attributes inherited from GiNaC::basic | |
unsigned | flags |
of type status_flags More... | |
unsigned | hashvalue |
hash value More... | |
Definition at line 61 of file add.cpp.
References GiNaC::_ex0, GiNaC::expairseq::construct_from_2_ex(), GINAC_ASSERT, GiNaC::expairseq::is_canonical(), and GiNaC::expairseq::overall_coeff.
Referenced by conjugate().
GiNaC::add::add | ( | const exvector & | v | ) |
Definition at line 68 of file add.cpp.
References GiNaC::_ex0, GiNaC::expairseq::construct_from_exvector(), GINAC_ASSERT, GiNaC::expairseq::is_canonical(), and GiNaC::expairseq::overall_coeff.
GiNaC::add::add | ( | const epvector & | v | ) |
Definition at line 75 of file add.cpp.
References GiNaC::_ex0, GiNaC::expairseq::construct_from_epvector(), GINAC_ASSERT, GiNaC::expairseq::is_canonical(), and GiNaC::expairseq::overall_coeff.
Definition at line 82 of file add.cpp.
References GiNaC::expairseq::construct_from_epvector(), GINAC_ASSERT, GiNaC::expairseq::is_canonical(), and GiNaC::expairseq::overall_coeff.
GiNaC::add::add | ( | epvector && | v | ) |
Definition at line 89 of file add.cpp.
References GiNaC::_ex0, GiNaC::expairseq::construct_from_epvector(), GINAC_ASSERT, GiNaC::expairseq::is_canonical(), and GiNaC::expairseq::overall_coeff.
Definition at line 96 of file add.cpp.
References GiNaC::expairseq::construct_from_epvector(), GINAC_ASSERT, GiNaC::expairseq::is_canonical(), and GiNaC::expairseq::overall_coeff.
|
inlineoverridevirtual |
Return relative operator precedence (for parenthezing output).
Reimplemented from GiNaC::basic.
Definition at line 49 of file add.h.
Referenced by do_print_csrc(), and print_add().
|
overridevirtual |
Information about the object.
Reimplemented from GiNaC::basic.
Definition at line 223 of file add.cpp.
References GiNaC::info_flags::cinteger, GiNaC::info_flags::cinteger_polynomial, GiNaC::info_flags::crational, GiNaC::info_flags::crational_polynomial, GiNaC::info_flags::even, GiNaC::ex::info(), info(), GiNaC::info_flags::integer, GiNaC::info_flags::integer_polynomial, GiNaC::ex::is_zero(), GiNaC::info_flags::nonnegative, GiNaC::info_flags::nonnegint, GiNaC::expairseq::overall_coeff, GiNaC::info_flags::polynomial, GiNaC::info_flags::posint, GiNaC::info_flags::positive, GiNaC::info_flags::rational, GiNaC::info_flags::rational_function, GiNaC::info_flags::rational_polynomial, GiNaC::info_flags::real, recombine_pair_to_ex(), and GiNaC::expairseq::seq.
Referenced by info().
|
overridevirtual |
Check whether this is a polynomial in the given variables.
Reimplemented from GiNaC::basic.
Definition at line 254 of file add.cpp.
References GiNaC::expairseq::seq.
|
overridevirtual |
Return degree of highest power in object s.
Reimplemented from GiNaC::basic.
Definition at line 264 of file add.cpp.
References GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, and GiNaC::expairseq::seq.
|
overridevirtual |
Return degree of lowest power in object s.
Reimplemented from GiNaC::basic.
Definition at line 279 of file add.cpp.
References GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, and GiNaC::expairseq::seq.
Return coefficient of degree n in object s.
Reimplemented from GiNaC::basic.
Definition at line 294 of file add.cpp.
References GiNaC::_ex0, GiNaC::clifford_max_label(), GiNaC::ex::coeff(), GiNaC::ncmul::coeff(), GiNaC::dirac_ONE(), GiNaC::ex::is_zero(), n, GiNaC::expairseq::overall_coeff, and GiNaC::expairseq::seq.
Referenced by print_add(), and smod().
|
overridevirtual |
Perform automatic term rewriting rules in this class.
In the following x stands for a symbolic variables of type ex and c stands for such an expression that contain a plain number.
Reimplemented from GiNaC::basic.
Definition at line 328 of file add.cpp.
References GiNaC::return_types::commutative, GiNaC::expairseq::evalchildren(), GiNaC::status_flags::evaluated, GiNaC::basic::flags, GINAC_ASSERT, GiNaC::basic::hold(), GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, recombine_pair_to_ex(), GiNaC::expairseq::seq, and unlikely.
|
overridevirtual |
Evaluate sums, products and integer powers of matrices.
Reimplemented from GiNaC::basic.
Definition at line 362 of file add.cpp.
References GiNaC::matrix::add(), GiNaC::ex::evalm(), m, GiNaC::expairseq::overall_coeff, recombine_pair_to_ex(), GiNaC::expairseq::seq, and split_ex_to_pair().
|
overridevirtual |
Implementation of ex::series() for sums.
This performs series addition when adding pseries objects.
Reimplemented from GiNaC::basic.
Definition at line 749 of file pseries.cpp.
References GiNaC::_ex1, GiNaC::expairseq::op(), options, order, GiNaC::expairseq::overall_coeff, r, GiNaC::expairseq::seq, and GiNaC::ex::series().
Implementation of ex::normal() for a sum.
It expands terms and performs fractional addition.
Reimplemented from GiNaC::basic.
Definition at line 2336 of file normal.cpp.
References expand(), GiNaC::frac_cancel(), GiNaC::gcd(), GINAC_ASSERT, n, GiNaC::subs_options::no_pattern, GiNaC::container< C >::nops(), GiNaC::container< C >::op(), GiNaC::expairseq::overall_coeff, recombine_pair_to_ex(), and GiNaC::expairseq::seq.
|
overridevirtual |
Reimplemented from GiNaC::basic.
Definition at line 333 of file normal.cpp.
References GiNaC::_num0_p, GiNaC::_num1_p, c, GiNaC::denom(), GiNaC::gcd(), GINAC_ASSERT, GiNaC::lcm(), GiNaC::numer(), GiNaC::expairseq::overall_coeff, and GiNaC::expairseq::seq.
Apply symmetric modular homomorphism to an expanded multivariate polynomial.
This function is usually used internally by heur_gcd().
xi | modulus |
Reimplemented from GiNaC::basic.
Definition at line 1213 of file normal.cpp.
References coeff(), GINAC_ASSERT, GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, GiNaC::expairseq::seq, and GiNaC::smod().
|
overridevirtual |
Implementation ex::max_coefficient().
Reimplemented from GiNaC::basic.
Definition at line 1171 of file normal.cpp.
References GiNaC::abs(), GINAC_ASSERT, GiNaC::expairseq::overall_coeff, and GiNaC::expairseq::seq.
|
overridevirtual |
Reimplemented from GiNaC::basic.
Definition at line 392 of file add.cpp.
References add(), GiNaC::are_ex_trivially_equal(), GiNaC::ex::conjugate(), GiNaC::expairseq::nops(), and GiNaC::expairseq::op().
|
overridevirtual |
Reimplemented from GiNaC::basic.
Definition at line 416 of file add.cpp.
References GiNaC::ex::coeff(), GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, GiNaC::info_flags::real, GiNaC::ex::real_part(), recombine_pair_to_ex(), GiNaC::expairseq::seq, and split_ex_to_pair().
|
overridevirtual |
Reimplemented from GiNaC::basic.
Definition at line 433 of file add.cpp.
References GiNaC::ex::coeff(), GiNaC::ex::imag_part(), GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, GiNaC::info_flags::real, recombine_pair_to_ex(), GiNaC::expairseq::seq, and split_ex_to_pair().
|
overridevirtual |
Return a vector containing the free indices of an expression.
Reimplemented from GiNaC::basic.
Definition at line 464 of file indexed.cpp.
References GiNaC::ex::get_free_indices(), GiNaC::indices_consistent(), GiNaC::expairseq::nops(), and GiNaC::expairseq::op().
Reimplemented from GiNaC::basic.
Definition at line 450 of file add.cpp.
References GiNaC::expairseq::seq.
Implementation of ex::diff() for a sum.
It differentiates each term.
Reimplemented from GiNaC::basic.
Definition at line 462 of file add.cpp.
References GiNaC::expairseq::seq.
|
overrideprotectedvirtual |
Reimplemented from GiNaC::basic.
Definition at line 481 of file add.cpp.
References GiNaC::return_types::commutative, and GiNaC::expairseq::seq.
|
overrideprotectedvirtual |
Reimplemented from GiNaC::basic.
Definition at line 489 of file add.cpp.
References GiNaC::expairseq::seq.
|
overrideprotectedvirtual |
Create an object of this type.
This method works similar to a constructor. It is useful because expairseq has (at least) two possible different semantics but we want to inherit methods thus avoiding code duplication. Sometimes a method in expairseq has to create a new one of the same semantics, which cannot be done by a ctor because the name (add, mul,...) is unknown on the expairseq level. In order for this trick to work a derived class must of course override this definition.
Reimplemented from GiNaC::expairseq.
|
overrideprotectedvirtual |
Reimplemented from GiNaC::expairseq.
Form an expair from an ex, using the corresponding semantics.
Reimplemented from GiNaC::expairseq.
Definition at line 509 of file add.cpp.
References GiNaC::_ex1, GiNaC::basic::clearflag(), GiNaC::status_flags::evaluated, GiNaC::status_flags::hash_calculated, GiNaC::ex::is_equal(), and GiNaC::expairseq::overall_coeff.
Referenced by evalm(), imag_part(), and real_part().
|
overrideprotectedvirtual |
Reimplemented from GiNaC::expairseq.
Definition at line 524 of file add.cpp.
References GiNaC::_ex1, c, GiNaC::basic::clearflag(), GiNaC::status_flags::evaluated, GINAC_ASSERT, GiNaC::status_flags::hash_calculated, GiNaC::ex::is_equal(), likely, and GiNaC::expairseq::overall_coeff.
|
overrideprotectedvirtual |
Reimplemented from GiNaC::expairseq.
Definition at line 550 of file add.cpp.
References GiNaC::_ex1, GiNaC::_num1_p, c, GiNaC::expair::coeff, GINAC_ASSERT, and GiNaC::expair::rest.
Referenced by GiNaC::mul::eval(), and GiNaC::power::expand_add_2().
Form an ex out of an expair, using the corresponding semantics.
Reimplemented from GiNaC::expairseq.
Definition at line 564 of file add.cpp.
References GiNaC::_num1_p, GiNaC::expair::coeff, and GiNaC::expair::rest.
Referenced by eval(), evalm(), GiNaC::power::expand(), imag_part(), info(), normal(), and real_part().
|
overrideprotectedvirtual |
Expand expression, i.e.
multiply it out and return the result as a new expression.
Reimplemented from GiNaC::basic.
Definition at line 572 of file add.cpp.
References GiNaC::expairseq::expandchildren(), GiNaC::status_flags::expanded, options, GiNaC::expairseq::overall_coeff, and GiNaC::basic::setflag().
Referenced by normal().
|
protected |
Definition at line 115 of file add.cpp.
References GiNaC::_num1_p, GiNaC::_num_1_p, c, coeff(), GiNaC::ex::is_equal(), GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, precedence(), GiNaC::basic::print(), GiNaC::ex::print(), and GiNaC::expairseq::seq.
Referenced by do_print(), and do_print_latex().
|
protected |
Definition at line 160 of file add.cpp.
References c, and print_add().
|
protected |
Definition at line 165 of file add.cpp.
References c, and print_add().
|
protected |
Definition at line 170 of file add.cpp.
References GiNaC::_ex1, GiNaC::_ex_1, GiNaC::_num1_p, GiNaC::_num_1_p, c, GiNaC::ex::info(), GiNaC::ex::is_zero(), GiNaC::expairseq::overall_coeff, GiNaC::info_flags::positive, precedence(), GiNaC::ex::print(), GiNaC::info_flags::real, and GiNaC::expairseq::seq.
|
protected |
Definition at line 212 of file add.cpp.
References c, GiNaC::expairseq::nops(), GiNaC::expairseq::op(), and GiNaC::ex::print().