Logged In: YES

user_id=895922

To plot f, you'll need to quote the first argument to plot2d.

(%i1) f(x):= if x>0 then x else -x;

(%o1) f(x):=if x>0 then x else -x

(%i2) plot2d('(f(x)),[x,1,2]);

Maxima handles if--then--else expressions poorly.

Barton