Revert "Improve diff(abs(x)) for real x."
authorRichard Kreckel <kreckel@ginac.de>
Fri, 19 Jun 2020 11:34:07 +0000 (13:34 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Fri, 19 Jun 2020 11:34:07 +0000 (13:34 +0200)
This reverts commit fa1ffcfdc9da97a6fb7cc2c9c36fe1fc45c808a9.

ginac/inifcns.cpp

index ec74a435de0774290f6d95baa221690b87420de7..d68afbb50df6d6f965e8d6bbbd4573cd9bdf5115 100644 (file)
@@ -321,8 +321,6 @@ static ex abs_expand(const ex & arg, unsigned options)
 static ex abs_expl_derivative(const ex & arg, const symbol & s)
 {
        ex diff_arg = arg.diff(s);
-       if (arg.info(info_flags::real))
-               return diff_arg*(2*step(arg) - 1);
        return (diff_arg*arg.conjugate()+arg*diff_arg.conjugate())/2/abs(arg);
 }