]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.cpp
- (l)degree(s), coeff(s, n) and collect(s) were extended to accept expressions
[ginac.git] / ginac / symbol.cpp
index f566e233ae529efec70fae37bf68073cfb167088..94d01e4cfe8cefb74f302182c27f7cb511e6cef5 100644 (file)
@@ -176,24 +176,6 @@ bool symbol::info(unsigned inf) const
                return inherited::info(inf);
 }
 
                return inherited::info(inf);
 }
 
-int symbol::degree(const ex & s) const
-{
-       return is_equal(ex_to<basic>(s)) ? 1 : 0;
-}
-
-int symbol::ldegree(const ex & s) const
-{
-       return is_equal(ex_to<basic>(s)) ? 1 : 0;
-}
-
-ex symbol::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 symbol::eval(int level) const
 {
        if (level == -max_recursion_level)
 ex symbol::eval(int level) const
 {
        if (level == -max_recursion_level)