First time here? Check out the FAQ!
answered 2020-10-18 00:03:06 +0100
You can define a piecewise symbolic function, see https://doc.sagemath.org/html/en/reference/functions/sage/functions/piecewise.html