Ask Your Question

Revision history [back]

You can define a piecewise symbolic function, see https://doc.sagemath.org/html/en/reference/functions/sage/functions/piecewise.html