]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.h
- added ex::to_rational() to convert general expression to rational expression
[ginac.git] / ginac / ex.h
index 9b1d0fa1e399142bf2f1db285bd9213c71849538..bf8d0d6f45edb04246c8f4594b7d4d35620253b0 100644 (file)
@@ -260,6 +260,7 @@ public:
     ex primpart(const symbol &x, const basic &cont) const { return primpart(x,ex(cont)); }
 #endif // def CINT_CONVERSION_WORKAROUND
     ex normal(int level = 0) const;
     ex primpart(const symbol &x, const basic &cont) const { return primpart(x,ex(cont)); }
 #endif // def CINT_CONVERSION_WORKAROUND
     ex normal(int level = 0) const;
+    ex to_rational(lst &repl_lst) const;
     ex smod(const numeric &xi) const;
     numeric max_coefficient(void) const;
     ex collect(const symbol & s) const;
     ex smod(const numeric &xi) const;
     numeric max_coefficient(void) const;
     ex collect(const symbol & s) const;
@@ -418,6 +419,9 @@ inline ex denom(const ex & thisex)
 inline ex normal(const ex & thisex, int level=0)
 { return thisex.normal(level); }
 
 inline ex normal(const ex & thisex, int level=0)
 { return thisex.normal(level); }
 
+inline ex to_rational(const ex & thisex, lst & repl_lst)
+{ return thisex.to_rational(repl_lst); }
+
 inline ex collect(const ex & thisex, const symbol & s)
 { return thisex.collect(s); }
 
 inline ex collect(const ex & thisex, const symbol & s)
 { return thisex.collect(s); }