In the software Maxima, how to get the k-th element in a list

662 Views Asked by At

I looked up the manual and only find functions first([1,2,3]) second([1,2,3]) third([1,2,3]) ...

how to get an element by an index?

1

There are 1 best solutions below

0
On BEST ANSWER

You can use the PART function, e.g. PART([1,2,3],2) = 2.