정렬 명령

GeoGebra Manual
Mathcare (토론 | 기여)님의 2020년 6월 28일 (일) 22:15 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색
Accessories dictionary.png
이 페이지는 공식 매뉴얼에서 출력과 pdf를 위한 부분입니다. 일반 사용자들은 이 페이지를 편집할 수 없습니다. 만일 이 페이지에서 오류를 발견하였으면, 연락하여 주시기 바랍니다.사용자에 의해 편집 가능한 버전으로 이동
Sort( <List> )
Sorts a list of numbers, text objects, or points.
노트: Lists of points are sorted by x-coordinates.
예:
  • Sort({3, 2, 1}) gives you the list {1, 2, 3}.
  • Sort({"pears", "apples", "figs"}) gives you the list elements in alphabetical order.
  • Sort({(3, 2), (2, 5), (4, 1)}) gives you {(2, 5), (3, 2), (4, 1)}.
Sort( <Values>, <Keys> )
Sorts the first list Values according to the corresponding second list Keys.
예:
  • In order to sort a list of polynomials list1 = {x^3, x^2, x^6} according to degree, create the dependent list of degrees list2 = Zip(Degree(a), a, list1). After that, Sort(list1, list2) yields the requested list3 = {x^2, x^3, x^6}.
  • In order to draw the polygon having as vertices the complex roots of x^{10}-1, sorted by their arguments, create list1 = {ComplexRoot(x^10-1)}, then use the command Polygon(Sort(list1, arg(list1))). This command yields poly1 = 2.94.
노트: There is a workaround to sort lists of arbitrary objects which is explained in the Tutorial:Advanced List Sorting.
© 2024 International GeoGebra Institute