Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Solving inequalities in Mathematica' topicStudent Support Forum > General > "Solving inequalities in Mathematica"

Next Comment >Help | Reply To Topic
Author Comment/Response
Anders Gregersen
12/25/06 2:39pm

Hi all.

I tried the following in Mathematica:
---
FindInstance[
x != 1 && x != 2 && x != 3 && x != 4 && x != 5 && x != 6 && x != 7 &&
x != 8 && y != 1 != 2 != 3 != 4 != 5 != 6 && x > 0 && x < 10, {x,
y}, Integers]
---

And it takes forever! Why is that? If I just execute
---
FindInstance[
x != 1 && x != 2 && x != 3 && x != 4 && x != 5 && x != 6 && x != 7 &&
x != 8 && x > 0 && x < 10, x, Integers]
---

it's done right away.

URL: ,

Subject (listing for 'Solving inequalities in Mathematica')
Author Date Posted
Solving inequalities in Mathematica Anders Grege... 12/25/06 2:39pm
Re: Solving inequalities in Mathematica yehuda ben-s... 12/31/06 04:11am
Next Comment >Help | Reply To Topic