]> www.ginac.de Git - ginac.git/blobdiff - ginac/constant.cpp
- (l)degree(s), coeff(s, n) and collect(s) were extended to accept expressions
[ginac.git] / ginac / constant.cpp
index 371902bdebdbe1cd5a3badb8310ab59ffea1a62c..5ba8475108af93ef8ccf90ff4fc5afb4fb747fc3 100644 (file)
@@ -145,24 +145,6 @@ void constant::print(const print_context & c, unsigned level) const
                c.s << name;
 }
 
-int constant::degree(const ex & s) const
-{
-       return is_equal(ex_to<basic>(s)) ? 1 : 0;
-}
-
-int constant::ldegree(const ex & s) const
-{
-       return is_equal(ex_to<basic>(s)) ? 1 : 0;
-}
-
-ex constant::coeff(const ex & s, int n) const
-{
-       if (is_equal(ex_to<basic>(s)))
-               return n==1 ? _ex1 : _ex0;
-       else
-               return n==0 ? *this : _ex0;
-}
-
 ex constant::evalf(int level) const
 {
        if (ef!=0) {