X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fbasic.h;h=348523791a19afa50abd1c84006c49fe003758c8;hp=fc825226538a1ff5672ddac9cf991eea1932a850;hb=83a7ee99a947cbbf331018b803ad6be43a9ccd45;hpb=29b420743599f001b8bfc8b63fb6ac81aa3dfba7 diff --git a/ginac/basic.h b/ginac/basic.h index fc825226..34852379 100644 --- a/ginac/basic.h +++ b/ginac/basic.h @@ -3,7 +3,7 @@ * Interface to GiNaC's ABC. */ /* - * GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2008 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 @@ -25,6 +25,7 @@ #include // for size_t #include +#include #include // CINT needs to work properly with #include @@ -45,6 +46,7 @@ class archive_node; class print_context; typedef std::vector exvector; +typedef std::set exset; typedef std::map exmap; // Define this to enable some statistical output for comparisons and hashing @@ -180,6 +182,7 @@ public: } // degree/coeff + virtual bool is_polynomial(const ex & var) const; virtual int degree(const ex & s) const; virtual int ldegree(const ex & s) const; virtual ex coeff(const ex & s, int n = 1) const; @@ -214,8 +217,10 @@ public: virtual unsigned return_type() const; virtual tinfo_t return_type_tinfo() const; - // complex conjugation + // functions for complex expressions virtual ex conjugate() const; + virtual ex real_part() const; + virtual ex imag_part() const; // functions that should be called from class ex only protected: