]> www.ginac.de Git - ginac.git/blobdiff - ginac/pseries.h
Added complex conjugation methods and GiNaC function "conjugate".
[ginac.git] / ginac / pseries.h
index 370c1f90a44be686fadaae81415c83204e2ee4ec..fd2a0428d6c928dadf6633c4ee3635f62839476e 100644 (file)
@@ -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;
@@ -56,6 +55,7 @@ public:
        ex subs(const exmap & m, unsigned options = 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;