#9880: Segfault in PyNaC 0.2.0.p4
-------------------------+--------------------------------------------------
   Reporter:  jpflori    |       Owner:  burcin      
       Type:  defect     |      Status:  needs_review
   Priority:  major      |   Milestone:  sage-4.6.2  
  Component:  symbolics  |    Keywords:  pynac       
     Author:             |    Upstream:  N/A         
   Reviewer:             |      Merged:              
Work_issues:             |  
-------------------------+--------------------------------------------------

Comment(by jpflori):

 Ok, here is a kind of strange example for the problems of ordering still
 hapenning with Sage 4.6.1:

 {{{
 sage: b_0,b_1,b_2=var('b_0,b_1,b_2')
 sage: f = 1/27*b_2^2/(2^b_2)^2 + 1/27*b_1^2/(2^b_1)^2 +
 1/27*b_0^2/(2^b_0)^2 + 1/27*b_2/(2^b_2)^2 - 2/81/(2^b_2)^2 +
 1/27*b_1/(2^b_1)^2 + 8/243/(2^b_2)^2 - 1/81*b_0/(2^b_0)^2 -
 1/27*b_1^2/((2^b_2)^2*(2^b_1)^2) - 1/27*b_0^2/((2^b_2)^2*(2^b_0)^2) -
 20/243/(2^b_1)^2 + 1/9/2^b_0 + 4/81*b_0/(2^b_0)^2 - 8/243/(2^b_2)^2 -
 2/9/(2^b_2*2^b_1) - 2/9/(2^b_2*2^b_0) + 8/243/(2^b_1)^2 - 1/9/2^b_0 +
 2/9/(2^b_2*2^b_1) + 2/9/(2^b_2*2^b_0) - 2/27*b_1*b_2/((2^b_2)^2*(2^b_1)^2)
 - 1/27*b_2^2/((2^b_2)^2*(2^b_1)^2) - 2/27*b_0*b_2/((2^b_2)^2*(2^b_0)^2) -
 1/27*b_2^2/((2^b_2)^2*(2^b_0)^2) + 2/81/(2^b_1)^2 -
 1/27*b_0^2/((2^b_1)^2*(2^b_0)^2) - 2/27*b_0*b_1/((2^b_1)^2*(2^b_0)^2) -
 1/27*b_1^2/((2^b_1)^2*(2^b_0)^2) - 2/81/(2^b_0)^2 +
 5/27*b_1/((2^b_2)^2*(2^b_1)^2) + 5/27*b_2/((2^b_2)^2*(2^b_1)^2) +
 5/27*b_0/((2^b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b_2)^2*(2^b_1)^2) - 1/27*b_0^2/((2^b_2)^2*(2^b_0)^2) -
 20/243/(2^b_1)^2 - 1/27*b_0^2/((2^b_1)^2*(2^b_0)^2) -
 2/27*b_0*b_1/((2^b_1)^2*(2^b_0)^2) - 1/27*b_1^2/((2^b_1)^2*(2^b_0)^2) -
 2/81/(2^b_0)^2 + 5/27*b_1/((2^b_2)^2*(2^b_1)^2) +
 5/27*b_2/((2^b_2)^2*(2^b_1)^2) + 5/27*b_0/((2^b_2)^2*(2^b_0)^2) +
 5/27*b_2/((2^b_2)^2*(2^b_0)^2) + 5/27*b_0/((2^b_1)^2*(2^b_0)^2) +
 5/27*b_1/((2^b_1)^2*(2^b_0)^2) - 4/81/((2^b_2)^2*(2^b_1)^2) +
 1/27*b_0^2/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) +
 2/27*b_0*b_1/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) +
 2/27*b_0*b_2/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) +
 1/27*b_1^2/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) +
 2/27*b_1*b_2/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) +
 1/27*b_2^2/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) - 4/81/((2^b_2)^2*(2^b_0)^2) -
 4/81/((2^b_1)^2*(2^b_0)^2) - 11/27*b_0/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) -
 11/27*b_1/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) -
 11/27*b_2/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) +
 64/81/((2^b_2)^2*(2^b_1)^2*(2^b_0)^2) + 35/81


 }}}
 The expression for f should get (a little bit) simplified.

 For example, there are different summands where the only symbolic
 expressions used are (2!^b_2)!^-2 and they should get automatically
 gathered when pynac creates the object.

 In fact calling expand() method on f gives you the right expression, but
 if things were working correctly you should not have to do this.

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