#14229: Remove vacuous solutions from solve
-------------------------------+--------------------------
       Reporter:  ppurka       |        Owner:  burcin
           Type:  enhancement  |       Status:  needs_work
       Priority:  major        |    Milestone:  sage-6.4
      Component:  symbolics    |   Resolution:
       Keywords:               |    Merged in:
        Authors:               |    Reviewers:
Report Upstream:  N/A          |  Work issues:
         Branch:               |       Commit:
   Dependencies:               |     Stopgaps:
-------------------------------+--------------------------
Changes (by jondo):

 * work_issues:  port to upstream =>


Old description:

> Sometimes solve and its variants tend to report vacuous solutions. A
> recent one from [http://ask.sagemath.org/question/2324/how-to-print-out-
> maxima-commands-being-used-by ask.sagemath] is the following:
> {{{
> sage: x,y = var('x,y')
> sage: solve([x^2*y^2 <= x^2*y, x^2*y^2 > x^2*y],[x,y])
> [[x == 0, 1 < y, 0 != 0], [x == 0, y < 0, 0 != 0]]
> }}}
>
> Shouldn't we remove these meaningless solutions? The attached patch
> contains a potential solution. If it seems reasonable, then similar
> changes could be introduced in `solve_ineq`.
>
> The output of the above command after this patch is as expected:
> {{{
> sage: x,y = var('x,y')
> sage: solve([x^2*y^2 <= x^2*y, x^2*y^2 > x^2*y],[x,y])
> []
> }}}
>
> ----
>
> If you can translate this to maxima proper, please feel free to do so and
> submit a patch upstream.

New description:

 Sometimes solve and its variants tend to report vacuous solutions. A
 recent one from [http://ask.sagemath.org/question/2324/how-to-print-out-
 maxima-commands-being-used-by ask.sagemath] is the following:
 {{{
 sage: x,y = var('x,y')
 sage: solve([x^2*y^2 <= x^2*y, x^2*y^2 > x^2*y],[x,y])
 [[x == 0, 1 < y, 0 != 0], [x == 0, y < 0, 0 != 0]]
 }}}

 Shouldn't we remove these meaningless solutions? The attached patch
 contains a potential solution. If it seems reasonable, then similar
 changes could be introduced in `solve_ineq`.

 The output of the above command after this patch is as expected:
 {{{
 sage: x,y = var('x,y')
 sage: solve([x^2*y^2 <= x^2*y, x^2*y^2 > x^2*y],[x,y])
 []
 }}}

 ----

 If you can translate this to maxima proper, please feel free to do so and
 submit a patch upstream.

 ----
 '''Workaround''': call `maxima_calculus("domain: real")` before `solve`
 (see comment 12).

--

--
Ticket URL: <http://trac.sagemath.org/ticket/14229#comment:17>
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.

Reply via email to