#14801: Piecewise functions done right
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner: rws
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.6
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: Volker Braun, | Reviewers:
Ralf Stephan | Work issues:
Report Upstream: N/A | Commit:
Branch: | 64bbe5393ffc24ae3551644e5171692e7f7a2dd6
public/piecewise-2 | Stopgaps:
Dependencies: #14800, #14780, |
#9556, #13125, #14802, #16397, |
#17759 |
-------------------------------------+-------------------------------------
Comment (by rws):
The solution is to change the doctest to:
{{{
sage: f1 = lambda x: -1
sage: f2 = lambda x: 2
sage: f = piecewise([((0,pi/2),f1(x)), ((pi/2,pi),f2(x))])
}}}
Or, if function objects are used to apply the call inside `piecewise`.
--
Ticket URL: <http://trac.sagemath.org/ticket/14801#comment:55>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.