X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffunction.pl;h=ba1b02ae08a2c014f953189a91b4dc62f42b01eb;hp=47cc5492bf5867be978fe666c4d97081ebe4e7f1;hb=e65326821bb7f9c4054f35caef46039f1963e951;hpb=a9b901dcd0aa4b21a0fefdc34539f3b4b60b03e1 diff --git a/ginac/function.pl b/ginac/function.pl index 47cc5492..ba1b02ae 100755 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -164,7 +164,7 @@ $interface=<(s)) ? 1 : 0; -} - -int function::ldegree(const ex & s) const -{ - return is_equal(ex_to(s)) ? 1 : 0; -} - -ex function::coeff(const ex & s, int n) const -{ - if (is_equal(ex_to(s))) - return n==1 ? _ex1 : _ex0; - else - return n==0 ? ex(*this) : _ex0; -} - ex function::eval(int level) const { GINAC_ASSERT(serial