Menu

#3343 Maxima doesn't ask whether a quantity is 0, but it should ask.

None
open
nobody
None
5
2017-10-21
2017-10-21
Isaac
No

Following a discussion on the discuss mailing list, Maxima 5.41.0 (Lisp SBCL 1.3.20) should ask whether 4ac-b^2 is worth 0 in the following example, but it doesn't. As a result it won't return the result when this quantity is 0. However if I use an explicit expression with that quantity worth 0, it has no problem solving it. So, it should really ask whether the quantity is worth 0, since it's able to solve the integral.
Here's the MWE:
integrate(1/(ax^2+bx+c), x, 0, h);
Is h positive, negative or zero? pos;
Is 4ac-b^2 positive or negative? ** ------> Should have asked whether it's zero too. Bug.

If you do:
integrate(1/(x*(r_2-r_1)/h+r_1)^2,x,0,h);
Then it has no problem returning the result. And it turns out this expression of the form 1/(ax^2+bx+c) where 4ac-b^2 is worth 0.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB