#17793: wrong piecewise convolution
-----------------------------+------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+------------------------
Description changed by rws:
Old description:
> This doctest tests against a wrong result, the resulting curve must have
> a quadratic part:
> {{{
> sage: f = piecewise([[(-1,1),1]])
> ## example 2
> sage: g = piecewise([[(0,3),x]])
> sage: f.convolution(g)
> Piecewise defined function with 3 parts, [[(-1, 1), 0], [(1,
> 2), -3/2*x], [(2, 4), -3/2*x]]
> }}}
> The ticket is for documentary reasons because a new piecewise code is
> being worked on in #14801.
New description:
This doctest tests against a wrong result, the resulting curve must have a
quadratic part:
{{{
sage: f = piecewise([[(-1,1),1]])
## example 2
sage: g = piecewise([[(0,3),x]])
sage: f.convolution(g)
Piecewise defined function with 3 parts, [[(-1, 1), 0], [(1,
2), -3/2*x], [(2, 4), -3/2*x]]
}}}
From numerical investigation it seems the solution would be
`piecewise(x|-->1/2*x^2 + x + 1/2 on (-1/2, 1), x|-->2*x on (1, 2),
x|-->-1/2*x^2 + x + 4 on (2, 7/2); x)`.
The ticket is for documentary reasons because a new piecewise code is
being worked on in #14801.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/17793#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 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.