X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fmul.h;h=d28b6276c8b3d91039f9a5d0276e4a80bb490731;hb=bed06c78cdca3df4edccd26ef3cf913b1c82be76;hp=a11b29b5fd0f3e39ce8966bc400ef880c8a9ee10;hpb=12fefbca9b424cb8e9ae05d83883b96e17c7b96e;p=ginac.git diff --git a/ginac/mul.h b/ginac/mul.h index a11b29b5..d28b6276 100644 --- a/ginac/mul.h +++ b/ginac/mul.h @@ -3,7 +3,7 @@ * Interface to GiNaC's products of expressions. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2011 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 @@ -20,8 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GINAC_MUL_H__ -#define __GINAC_MUL_H__ +#ifndef GINAC_MUL_H +#define GINAC_MUL_H #include "expairseq.h" @@ -49,6 +49,7 @@ public: public: unsigned precedence() const {return 50;} bool info(unsigned inf) const; + bool is_polynomial(const ex & var) const; int degree(const ex & s) const; int ldegree(const ex & s) const; ex coeff(const ex & s, int n = 1) const; @@ -64,6 +65,7 @@ public: ex smod(const numeric &xi) const; numeric max_coefficient() const; exvector get_free_indices() const; + ex conjugate() const; protected: ex derivative(const symbol & s) const; ex eval_ncmul(const exvector & v) const; @@ -98,7 +100,8 @@ protected: static bool can_be_further_expanded(const ex & e); std::auto_ptr expandchildren(unsigned options) const; }; +GINAC_DECLARE_UNARCHIVER(mul); } // namespace GiNaC -#endif // ndef __GINAC_MUL_H__ +#endif // ndef GINAC_MUL_H