Ask Your Question
0

solve() returns 0 != 0

asked 2013-11-26 18:02:08 +0100

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 19:12:02 +0100

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.

Alan Moraes gravatar imageAlan Moraes ( 2013-11-26 22:57:42 +0100 )edit

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

Alan Moraes gravatar imageAlan Moraes ( 2013-11-26 22:57:42 +0100 )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 18:02:08 +0100

Seen: 303 times

Last updated: Nov 26 '13