* Interface to GiNaC's sums of expressions. */
/*
- * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2000 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
#include <ginac/expairseq.h>
+#ifndef NO_GINAC_NAMESPACE
namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
/** Sum of expressions. */
class add : public expairseq
{
+ GINAC_DECLARE_REGISTERED_CLASS(add, expairseq)
+
friend class mul;
friend class ncmul;
friend class power;
// functions overriding virtual functions from bases classes
public:
basic * duplicate() const;
- void printraw(ostream & os) const;
void print(ostream & os, unsigned upper_precedence=0) const;
+ void printraw(ostream & os) const;
void printcsrc(ostream & os, unsigned type, unsigned upper_precedence=0) const;
bool info(unsigned inf) const;
int degree(symbol const & s) const;
ex series(symbol const & s, ex const & point, int order) const;
ex normal(lst &sym_lst, lst &repl_lst, int level=0) const;
numeric integer_content(void) const;
- ex smod(numeric const &xi) const;
+ ex smod(const numeric &xi) const;
numeric max_coefficient(void) const;
exvector get_indices(void) const;
ex simplify_ncmul(exvector const & v) const;
unsigned return_type_tinfo(void) const;
ex thisexpairseq(epvector const & v, ex const & oc) const;
ex thisexpairseq(epvector * vp, ex const & oc) const;
- void printpair(ostream & os, expair const & p,
- unsigned upper_precedence) const;
expair split_ex_to_pair(ex const & e) const;
expair combine_ex_with_coeff_to_pair(ex const & e,
ex const & c) const;
return static_cast<const add &>(*e.bp);
}
+#ifndef NO_GINAC_NAMESPACE
} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
#endif // ndef __GINAC_ADD_H__