Ask Your Question

fgv's profile - activity

2016-04-17 18:45:40 -0500 received badge  Famous Question (source)
2012-10-31 10:35:07 -0500 received badge  Nice Question (source)
2011-11-17 12:25:59 -0500 received badge  Notable Question (source)
2011-04-24 00:01:44 -0500 received badge  Popular Question (source)
2010-12-24 01:30:31 -0500 received badge  Student (source)
2010-12-23 07:15:43 -0500 asked a question Piecewise, Sage VS Mathematica

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