Ask Your Question

Wrong answer on inequality problem

asked 2015-10-17 11:15:53 -0600

leothan gravatar image

updated 2015-10-17 14:04:50 -0600

The problem I'm having is the solution I get on sage when solving the following inequality


It gives me the wrong answer

([x < -5], [x >= -1])

the answer should be


The answer can be checked at here at wolframalpha. I'm still new to sage and in the learning process I don't know if I might be doing something wrong.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-17 14:06:50 -0600

updated 2015-10-17 14:09:30 -0600

The problem seems to be that Sage makes sense of "+infinity > finite number" situations. Even in the following where both sides of the inequality are infinite

sage: A = (4*x+5)/(x^2)
sage: B = 4/(x+5)
sage: solve(A >= B, x)
[[x < -5], [x >= -1]]
sage: solve(A/x^2 >= B/x^2, x)
[[x < -5], [x >= -1]]


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-10-17 11:15:53 -0600

Seen: 52 times

Last updated: Oct 17 '15