Properties
Similar Topics
Statistics
Comments
3
Participants
2
Subscribers
2
Votes
1
Views
923
Share
Answered
How to know the position of the indexes of the elements after having sorted the data using the sort command.
l1={23,43,11,53};
index={3,1,2,4};
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
l1={23,43,11,53};
index=Sequence(IndexOf(Element(Sort(l1), i), l1), i, 1, Length(l1), 1)
index={3,1,2,4};
l1={23,43,11,53};
index=Sequence(IndexOf(Element(Sort(l1), i), l1), i, 1, Length(l1), 1)
index={3,1,2,4};
ranks=Sequence(IndexOf(Element(l1, i), Sort(l1)), i, 1, Length(l1), 1)
or
ranks2=Zip(IndexOf(k,Sort(l1)), k, l1)
Comments have been locked on this page!