Ask Your Question

Revision history [back]

convert maple16 proc...end proc into SageMath code

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 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!