plot question



To plot the graph, you need to quote the conditional

C9)  f(x):= '(if x<1/2 then x else (1-x))$

(C10) plot2d(f(x),[x,0,2]); 

Barton




richard noel fell <fell01@rcn.com>
Sent by: maxima-admin@math.utexas.edu
10/09/2003 02:49 PM

 
        To:     Maxima List <maxima@www.ma.utexas.edu>
        cc: 
        Subject:        [Maxima] plot question


I define a function
f(x):= if x<1/2 then x else (1-x);
This works. But, if I try to plot f, then Maxima is unable to evaluate 
the predicate. Is there a way to submit this function to plot2d 
successfully?
This does work in commercial Macsyma.
Thanks,
Dick Fell

_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima