[TIB] Re: ti-basic Digest V2 #127


[Prev][Next][Index][Thread]

[TIB] Re: ti-basic Digest V2 #127




----- Original Message -----
From: "Arthur J. O'Dwyer" <ajo@andrew.cmu.edu>
To: <ti-basic@lists.ticalc.org>
Sent: Friday, December 06, 2002 5:36 PM
Subject: [TIB] Re: ti-basic Digest V2 #127


> On the TI-83/+, this sorts L1 and L2 in parallel, as if you were sorting
> pairs of elements indexed on the first element.  That is, L2 ends up as
> {1,4,2,3}.
>
So this can be a way to figure out the index of the maximum element in a
list, then.

> Because if LHIGH was {1,2,3,4,5} and you took max(LHIGH), you would *not*
> get the highest value of LHIGH(1), LHIGH(2), LHIGH(3), LHIGH(4); instead,
> you'd get the maximum of the entire list, which would be 5.  The OP asked
> about four-element maxima in particular.
>
> -Arthur
I think the sender probably meant a 4-element list, but OK.




References: