Difference between revisions of "TI-BASIC:List Matrix One Liners"

From Learn @ Cemetech
Jump to navigationJump to search
(Initial automated import)
 
(No difference)

Latest revision as of 18:07, 24 February 2016

This page is dedicated to showcase small snippets of code may be useful. These small routines are designed to accomplish tasks involving lists, matrices, and their attributes. Unless specified, output is in Ans.

Index of Maximum List Element – jonbush

This line finds the index of first occurrence of a specific value in a list. The list to be searched is in Ans at the beginning.

1+sum(not(cumSum(Ans=max(Ans

This can also be used to find the index of the minimum or of any other value in place of "max(Ans"