convert maple16 proc...end proc into SageMath code

asked 2017-03-24 10:28:07 -0600

ho_ohbot gravatar image

I am trying to convert the use of an array(1..1) AND proc (y) operations operator; piecewise, abs(x),0) end proc; Into similar code in http://cloud.sagemath.com . Can anyone recommend what sage code I should use? I ended up doing a 'list' rather than an array, but I have no idea what to use for the proc_end proc in Maple. I am bascially plotting points for various functions to show various conditions of differentiability and continuous nature of these functions. So often times I'm plotting from close, small ranges on the real line, like (0,1) or (-1,1). I'm fairly new to sagemath and am still very much learning how to use it. THANK you in advance for any help!

edit retag flag offensive close merge delete