X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpseries.h;h=fd2a0428d6c928dadf6633c4ee3635f62839476e;hp=5dbdc66e245e31093e773ffbde870f008e3c08fd;hb=882ddd98da749458e15d31f0eb261feb3ff8f9f1;hpb=5ef801553eb39aed7bd2df9dd1aff9d752c3ea9d diff --git a/ginac/pseries.h b/ginac/pseries.h index 5dbdc66e..fd2a0428 100644 --- a/ginac/pseries.h +++ b/ginac/pseries.h @@ -3,7 +3,7 @@ * Interface to class for extended truncated power series. */ /* - * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2004 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 @@ -42,7 +42,6 @@ public: // functions overriding virtual functions from base classes public: - void print(const print_context & c, unsigned level = 0) const; unsigned precedence() const {return 38;} // for clarity just below add::precedence size_t nops() const; ex op(size_t i) const; @@ -54,8 +53,9 @@ public: ex evalf(int level=0) const; ex series(const relational & r, int order, unsigned options = 0) const; ex subs(const exmap & m, unsigned options = 0) const; - ex normal(exmap & repl, int level = 0) const; + ex normal(exmap & repl, exmap & rev_lookup, int level = 0) const; ex expand(unsigned options = 0) const; + ex conjugate() const; protected: ex derivative(const symbol & s) const; @@ -89,6 +89,14 @@ public: ex power_const(const numeric &p, int deg) const; pseries shift_exponents(int deg) const; +protected: + void print_series(const print_context & c, const char *openbrace, const char *closebrace, const char *mul_sym, const char *pow_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_tree(const print_tree & c, unsigned level) const; + void do_print_python(const print_python & c, unsigned level) const; + void do_print_python_repr(const print_python_repr & c, unsigned level) const; + protected: /** Vector of {coefficient, power} pairs */ epvector seq;