#7325: Sage cannot solve inequalities
----------------------------+-----------------------------------------------
   Reporter:  robert.marik  |       Owner:  tbd                                 
  
       Type:  enhancement   |      Status:  needs_work                          
  
   Priority:  major         |   Milestone:  sage-4.3                            
  
  Component:  algebra       |    Keywords:  relation, symbolics, inequality, 
solve
Work_issues:                |      Author:  Robert Marik                        
  
   Upstream:  N/A           |    Reviewer:  Karl-Dieter Crisman                 
  
     Merged:                |  
----------------------------+-----------------------------------------------
Changes (by mvngu):

  * status:  positive_review => needs_work


Comment:

 With the new Maxima spkg and the patch `trac_7325-final.patch`, I got
 these failures:
 {{{
 [mv...@sage sage-4.3.alpha0-maxima]$ ./sage -t -long devel/sage-
 main/sage/symbolic/relation.py
 sage -t -long "devel/sage-main/sage/symbolic/relation.py"
 **********************************************************************
 File "/scratch/mvngu/sandbox/sage-4.3.alpha0-maxima/devel/sage-
 main/sage/symbolic/relation.py", line 152:
     sage: solve_ineq([log(x)>log(y)])
 Expected:
     [y < x, 0 < y]
 Got:
     [0 < y, y < x, 0 < x]
 **********************************************************************
 File "/scratch/mvngu/sandbox/sage-4.3.alpha0-maxima/devel/sage-
 main/sage/symbolic/relation.py", line 909:
     sage: solve_ineq_fourier([x+y<9,x-y>4])
 Expected:
     [y + 4 < x, x < -y + 9, y < (5/2)]
 Got:
     [y < min(x - 4, -x + 9)]
 **********************************************************************
 File "/scratch/mvngu/sandbox/sage-4.3.alpha0-maxima/devel/sage-
 main/sage/symbolic/relation.py", line 918:
     sage: solve_ineq_fourier([log(x)>log(y)])
 Expected:
     [y < x, 0 < y]
 Got:
     [0 < y, y < x, 0 < x]
 **********************************************************************
 File "/scratch/mvngu/sandbox/sage-4.3.alpha0-maxima/devel/sage-
 main/sage/symbolic/relation.py", line 999:
     sage: solve_ineq([x+y<9,x-y>3])
 Expected:
     [y + 3 < x, x < -y + 9, y < 3]
 Got:
     [y < min(x - 3, -x + 9)]
 **********************************************************************
 3 items had failures:
    1 of 117 in __main__.example_0
    2 of   8 in __main__.example_7
    1 of   8 in __main__.example_8
 ***Test Failed*** 4 failures.
 For whitespace errors, see the file
 /home/mvngu/.sage//tmp/.doctest_relation.py
          [6.9 s]
 exit code: 1024

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t -long "devel/sage-main/sage/symbolic/relation.py"
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7325#comment:9>
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 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/sage-trac?hl=en.


Reply via email to