Ask Your Question
0

solve() returns 0 != 0

asked 2013-11-26 11:02:08 -0500

Alan Moraes gravatar image

Hi,

For the code below

var('x')

eq1 = x == 0

eq2 = x != 0

solve([eq1, eq2], x)

I get the solution

[[x == 0, 0 != 0]]

I was expecting an empty solution because I guess there isn't a solution to my equations.

Is there a way to avoid such "impossible solutions" and get an empty solution instead?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-26 12:12:02 -0500

ppurka gravatar image

There is a workaround in ticket 14229 but it is not wanted in Sage. It is instead desired to put this patch upstream in maxima. If you can translate the patch to a maxima patch, you are more than welcome. :)

edit flag offensive delete link more

Comments

Thanks for the reply, ppurka. This seems to be a good opportunity to learn Lisp :-)

Alan Moraes gravatar imageAlan Moraes ( 2013-11-26 15:57:42 -0500 )edit

Thanks for the reply, ppurka.

Alan Moraes gravatar imageAlan Moraes ( 2013-11-26 15:57:42 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-11-26 11:02:08 -0500

Seen: 101 times

Last updated: Nov 26 '13