#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):
As #16397 is accepted let's summarize the current situation. There are two
doctests failing with just a different number of graphics objects, easily
fixed, which leaves five fails in `doc/en/constructions/calculus.rst` due
to:
* missing `piecewise.laplace`
* missing `piecewise.fourier_series_sine_coefficient`
* missing `piecewise.fourier_series_cosine_coefficient`
* missing `piecewise.fourier_series_partial_sum`
* lambdas not coercible into SR (line 381)
As to the last item I think the doctest could be changed to no longer use
a lambda. Users depending on it could use `piecewise_old`. We could make
this ticket dependent on #17701 to at least have anonymous symbolic
functions working as in `function('newf2')(x)`.
If people insist on lambdas and def'ed Python functions as arguments to
`piecewise` it might be an idea to create a temporary anonymous function
(check for `types.FunctionType`) but this depends on #17701 if the idea
can be made to work.
--
Ticket URL: <http://trac.sagemath.org/ticket/14801#comment:53>
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.