Question: to plot procedure

Hello people in mapleprimes,


I want to draw a graph of a procedure.


filter:=x->if x<10 then 1-x/10 else 0 fi;



works well. But, I don't know why it is needed for filter(x) is wrapped with foward quotte ' .

I changed that quote to back quote ` but, in this case the result hadn't appeared.

And, without the foward quote ', error appears.

And, even if I wrapped x with ' as in plot('filter(x)','x' =0..20),

a graph appeared properly, though I cannot understand why wrapped x, 'x' is right.


Please teach me the logic of the above code.

Best wishes.


taro yamada


Please Wait...