MaxI
MaxI[ list ]
MaxI[ list ] returns the index of the element with the largest value in list.
| Example | in | out |
|---|---|---|
The index of the maximum value in {3,2,1}. |
MaxI[ {3,2,1} ] |
1 |
The index of the maximum value in l with l defined as List[5,7,4] in the script. |
MaxI[ l ] |
2 |
The index of the maximum value in {sqrt[3], sqrt[5], sqrt[7]}. |
MaxI[{sqrt[3], sqrt[5], sqrt[7]}] |
3 |