Open MarsEdge opened 10 years ago
It also seems to give the wrong answer for the integral.
I don't think the answer is wrong. integrate
gives 4*x/3 + 22*log(9*x - 12)/9
and manualintegrate
gives 4*x/3 + 22*log(12*x - 16)/9
, but these are both fine, because the only difference is a factor of 4/3
in the log
, which can be pulled out as a constant additive factor. In other words, the two answers differ by a constant, which is fine
In [23]: print(simplify(integrate((4*x+2)/(3*x-4)) - integrate((4*x+2)/(3*x-4), manual=True)))
-44*log(2)/9 + 22*log(3)/9
link: http://www.sympygamma.com/input/?i=%284x%2B2%29%2F%283x-4%29
simply click on the "See Steps" button in the "Antiderivative forms" box
I came across this by accident when testing the integral step-by-step feature. Derivative works fine though.