#12123: Bug in convolution
------------------------+---------------------------------------------------
   Reporter:  kcrisman  |          Owner:  burcin  
       Type:  defect    |         Status:  new     
   Priority:  major     |      Milestone:  sage-4.8
  Component:  calculus  |       Keywords:          
Work_issues:            |       Upstream:  N/A     
   Reviewer:            |         Author:          
     Merged:            |   Dependencies:          
------------------------+---------------------------------------------------

Comment(by kcrisman):

 The fix is to fix the following
 {{{
     cmd1 = "integrate((%s)*(%s),%s,%s,%s)"%(i1,i2, uu, a1,    tt-b1)    ##
 if a1+b1 < tt < a2+b1
     cmd2 = "integrate((%s)*(%s),%s,%s,%s)"%(i1,i2, uu, tt-b2, tt-b1)    ##
 if a1+b2 < tt < a2+b1
     cmd3 = "integrate((%s)*(%s),%s,%s,%s)"%(i1,i2, uu, tt-b2, a2)       ##
 if a1+b2 < tt < a2+b2
     cmd4 = "integrate((%s)*(%s),%s,%s,%s)"%(i1,i2, uu, a1, a2)          ##
 if a2+b1 < tt < a1+b2
     <snip>
     if a1-b1<a2-b2:
         if a2+b1!=a1+b2:
            h =
 Piecewise([[(a1+b1,a1+b2),fg1],[(a1+b2,a2+b1),fg4],[(a2+b1,a2+b2),fg3]])
 }}}
 to have `f2` instead of `f4`. There is a parallel part as well in the
 other branch of the if, where `fg2` should be `fg4`, it appears.

 This should be fixed quickly, but should also be checked to make sure it
 really does do the right thing! The code is not really commented enough to
 show what is going on with all these different mini-convolutions, one has
 to really think about it.

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