-
-
Notifications
You must be signed in to change notification settings - Fork 661
Open
Description
I propose to add periodic piecewise functions (for now, of a single real variable).
I see two main ways of doing so:
(1) By extending piecewise
.
(2) By making a suitably general symbolic mod function (#9935) and having the user combine it with a piecewise function. (This is how it is done in Mathematica, it appears - http://community.wolfram.com/groups/-/m/t/156025; see also https://reference.wolfram.com/language/ref/Piecewise.html)
Some literature on piecewise:
- MARTIN VON MOHRENSCHILDT, A Normal Form for Function Rings of Piecewise Functions, J. Symbolic Computation (1998) 26, 607–619, http://www.sciencedirect.com/science/article/pii/S0747717198902292
- Jacques Carette, A canonical form for some piecewise defined functions, https://arxiv.org/pdf/cs/0702010.pdf
- Dilated floor functions having nonnegative commutator https://arxiv.org/abs/1806.00579v1
Depends on #21232
CC: @kcrisman @tscrim @sagetrac-ares @novoselt @rwst @vbraun @pjbruin @burcin @jdemeyer
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/21215