[Maxima] Finding the maximum in a list

Mario Rodriguez biomates at telefonica.net
Wed May 10 16:24:12 CDT 2006


> Hi Neilen,
> 
> just enter  apply(max, [5,3,7,2]);
> 
> The function apply does what you want.
> 
> Volker

Yet another alternative:

(%i1) load(descriptive)$
(%i2) maxi([5,3,7,2]);
(%o2)                                  7


-- 
Mario Rodriguez Riotorto
www.biomates.net




More information about the Maxima mailing list