On Tue, Apr 6, 2010 at 3:54 PM, Stefan Neculai <[email protected]> wrote:
> One possible method for solving inequalities like q<0 ( where q is a
> continuous function ) would be:
> - find the roots of q=0
> - compute q(x) where x is a value between two consecutive roots (a,b)
> - on (a,b) interval, q will have the signature of q(x)
> Example:
> x^2-x<0
> q(x) = x^2 - x = 0
> roots: x = 0, x = 1
> on (-inf,0) we have: q(-1)=2 so q > 0 on (-inf,0)
> on (0,1) we have: q(1/2)=-1/4 so q < 0 on (0,1)
> on (1,inf) we have: q(2)=2 so q > 0 on (1,inf)
> What do you think about this?

Looks good. Here are lots of other examples that you might consider:

http://reference.wolfram.com/mathematica/tutorial/Inequalities-ManipulatingEquationsAndInequalities.html

Also, unless you have some ideas for a better interface, I would do
the interface similar to what Mathematica has.

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to