#18902: spurious results as inequality solution
-----------------------------+------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.8
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+------------------------
Description changed by rws:
Old description:
> From, http://ask.sagemath.org/question/26941/solving-system-of-
> inequalities-in-one-variable/:
> {{{
> x = var('x')
> a = var('a')
> solve([a*x>0,a>0],[x])
> [[0 < x, a > 0], [x < 0, -a > 0, a > 0]]
> }}}
> The second solution contradicts one given.
New description:
From, http://ask.sagemath.org/question/26941/solving-system-of-
inequalities-in-one-variable/:
{{{
x = var('x')
a = var('a')
solve([a*x>0,a>0],[x])
[[0 < x, a > 0], [x < 0, -a > 0, a > 0]]
}}}
The second solution contradicts one given precondition.
Also, from http://ask.sagemath.org/question/26410/test-if-an-inequality-
is-feasible-under-assumptions/
{{{
sage: (l1,l2) = var("l1 l2")
sage: assume (l1>=0)
sage: assume (l2>=0)
sage: solve (l1*l2<0, [l1,l2])
[[0 < l2, l1 < 0], [l2 < 0, 0 < l1]]
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/18902#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.