X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpower.h;h=2a2c500471a887b38bf285b16bb891e504aff668;hp=4fdbf44d593f9841234ccf5938e71168f02b7a7d;hb=d74420ef3c7b1b729393e57a290439fb92928692;hpb=b4be7b0f30fbb6178cf4ee83e1b3952e084bd8ca diff --git a/ginac/power.h b/ginac/power.h index 4fdbf44d..2a2c5004 100644 --- a/ginac/power.h +++ b/ginac/power.h @@ -3,7 +3,7 @@ * Interface to GiNaC's symbolic exponentiation (basis^exponent). */ /* - * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GINAC_POWER_H__ @@ -30,6 +30,7 @@ namespace GiNaC { class numeric; class add; +class mul; /** This class holds a two-component object, a basis and and exponent * representing exponentiation. */ @@ -62,9 +63,10 @@ public: ex series(const relational & s, int order, unsigned options = 0) const; ex subs(const exmap & m, unsigned options = 0) const; ex normal(exmap & repl, exmap & rev_lookup, int level = 0) const; - ex to_rational(lst &repl_lst) const; - ex to_polynomial(lst &repl_lst) const; + ex to_rational(exmap & repl) const; + ex to_polynomial(exmap & repl) const; exvector get_free_indices() const; + ex conjugate() const; protected: ex derivative(const symbol & s) const; ex eval_ncmul(const exvector & v) const; @@ -84,9 +86,9 @@ protected: void do_print_python(const print_python & c, unsigned level) const; void do_print_python_repr(const print_python_repr & c, unsigned level) const; - ex expand_add(const add & a, int n) const; - ex expand_add_2(const add & a) const; - ex expand_mul(const mul & m, const numeric & n) const; + ex expand_add(const add & a, int n, unsigned options) const; + ex expand_add_2(const add & a, unsigned options) const; + ex expand_mul(const mul & m, const numeric & n, unsigned options, bool from_expand = false) const; // member variables