-----Neilen Marais wrote: -----
>It seems the max() routine doesn't work on lists,
>but expects you to pass the items in individually. Is
>
>lreduce(max, [5,3,7,2]);
>
>the best way to achieve this?
Your method is fine. If you have 5.9.3, you can instead
use lmax and lmin:
(%i25) lmax([a,a+1,a+3,b]);
(%o25) max(b,a+3)
(%i26) lmax([a,a+1,a+3,a+7]);
(%o26) a+7
(%i27) lmax([a,a+1,a+3,a+7,b]);
(%o27) max(b,a+7)
(%i28) lmin([a,a+1,a+3,a+7,b]);
(%o28) min(b,a)
Barton