Ask Your Question

fgv's profile - activity

2016-04-18 01:45:40 +0200 received badge  Famous Question (source)
2012-10-31 16:35:07 +0200 received badge  Nice Question (source)
2011-11-17 19:25:59 +0200 received badge  Notable Question (source)
2011-04-24 07:01:44 +0200 received badge  Popular Question (source)
2010-12-24 08:30:31 +0200 received badge  Student (source)
2010-12-23 14:15:43 +0200 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