I´m transitioning from Mathematica to Sage. But I don´t know the way to write the piecewise function below in Sage:
f(x,a)= 0 ; x<=a
(x-a)^2 ; x>a
How can I do this?
Thanks
| 1 | initial version |
I´m transitioning from Mathematica to Sage. But I don´t know the way to write the piecewise function below in Sage:
f(x,a)= 0 ; x<=a
(x-a)^2 ; x>a
How can I do this?
Thanks
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.