[Maxima] last element of the list
eric.reyssat at math.unicaen.fr
Wed Dec 9 06:53:42 CST 2009
Hiisi a écrit :
> Dear Maxima Community!
> I need to access the last element of the list returned by 'allroots'
> function. I have to to it for many equations with different number of
> roots, so I can't just use brackets  each time. My current solution
> is to walk through the list in cycle and assign element values to some
> variable. Example:
> for x in roots do
> l: x,
> After that l will have value of the last element. I think there should
> be better solution. I just can't find it using doc manuals/
> Thanks in advance!
returns the last element of l.
More information about the Maxima