#12650: Perform safe simplifications in Expression.simplify()
------------------------------------+---------------------------------------
       Reporter:  mjo               |         Owner:  mjo       
           Type:  enhancement       |        Status:  needs_work
       Priority:  major             |     Milestone:  sage-5.0  
      Component:  symbolics         |    Resolution:            
       Keywords:                    |   Work issues:            
Report Upstream:  N/A               |     Reviewers:            
        Authors:  Michael Orlitzky  |     Merged in:            
   Dependencies:                    |      Stopgaps:            
------------------------------------+---------------------------------------
Changes (by roed):

  * status:  needs_review => needs_work


Comment:

 I'm happy with the overall plan, but the upgrade to Maxima 5.26 (#10682,
 merged in 5.0.beta8) produces a conflict.  With your patch, we have the
 following doctests from sage.calculus.wester.
 {{{
 sage: # (YES) Assuming Re(x)>0, Re(y)>0, deduce
 x^(1/n)*y^(1/n)-(x*y)^(1/n)=0.
 sage: # Maxima 5.26 has different behaviours depending on the current
 sage: # domain.
 sage: # To stick with the behaviour of previous versions, the domain is
 set
 sage: # to 'real' in the following.
 sage: # See Trac #10682 for further details.
 sage: n = var('n')
 sage: f = x^(1/n)*y^(1/n)-(x*y)^(1/n)
 sage: assume(real(x) > 0, real(y) > 0)
 sage: f.simplify()
 0
 sage: maxima = sage.calculus.calculus.maxima
 sage: maxima.set('domain', 'real') # set domain to real
 sage: f.simplify()
 0
 sage: maxima.set('domain', 'complex') # set domain back to its default
 value
 sage: forget()
 }}}

 Before your patch, the first f.simplify() didn't do much:

 {{{
 sage: f = x^(1/n)*y^(1/n)-(x*y)^(1/n)
 sage: assume(real(x) > 0, real(y) > 0)
 sage: f.simplify()
 x^(1/n)*y^(1/n) - (x*y)^(1/n)
 }}}

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