#12123: Bug in convolution
----------------------------+------------------------
       Reporter:  kcrisman  |        Owner:  burcin
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.4
      Component:  calculus  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+------------------------

Comment (by rws):

 Replying to [comment:4 kcrisman]:
 > [http://math.stackexchange.com/questions/362055 Here's another report]
 that is almost certainly the same thing.
 The two curve parts before addition look like this
 [[Image(http://s18.postimg.org/uptxg06pl/tmp_hd_MODX.png, 300px)]]
 A working implementation should make sure that, when they are added, only
 three intervals remain.
 {{{
 sage: f = Piecewise([[(0, 1), -1/2*x^2 + x],[(1, 2), 1/2],[(2, 3), 1/2*x^2
 - 3*x + 9/2]])
 sage: g = Piecewise([[(-1, 0), 1/2*x^2 + x + 1/2],[(0, 1), 1/2],[(1, 2),
 -1/2*x^2 + x]])sage: f+g
 Piecewise defined function with 4 parts, [[(-1, 0), 1/2*x^2 + x + 1/2],
 [(0, 1), -1/2*x^2 + x + 1/2], [(1, 2), -1/2*x^2 + x + 1/2], [(2, 3),
 1/2*x^2 - 3*x + 9/2]]
 }}}

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