Zip 명령

GeoGebra Manual
이동: 둘러보기, 검색
Accessories dictionary.png
이 페이지는 공식 매뉴얼에서 출력과 pdf를 위한 부분입니다. 일반 사용자들은 이 페이지를 편집할 수 없습니다. 만일 이 페이지에서 오류를 발견하였으면, 연락하여 주시기 바랍니다.사용자에 의해 편집 가능한 버전으로 이동
Zip( <Expression>, <Var1>, <List1>, <Var2>, <List2>, ...)
Creates list of objects obtained by substitution of variables in the expression by elements of corresponding lists. If the number of variables matches the number of lists, each variable is taken from the following list. If the number of variables exceeds number of lists by one, the last variable takes values from 1, 2, 3, ..., k where k is the length of the shortest list. Length of the resulting list is minimum of lengths of input lists.
예: Let P, Q, R, S be some points. Zip(Midpoint(A, B), A, {P, Q}, B, {R, S}) returns a list containing midpoints of segments PR and QS.
예: Let list1={x^2, x^3, x^6} be a list of polynomials. Zip(Degree(a), a, list1) returns the list {2, 3, 6}.
예: Let list1={1, 2, 5} be a list of numbers. Zip(Simplify(a*x^(b-1)), a, list1,b) returns the list {1, 2x, 5x²}.
노트: In each list the elements must be of the same type.

New possibility > 5.0.258 , functions allowed as variables

예: Zip(f(2), f, {x+1,x+3}) returns the list {3, 5}.
© 2024 International GeoGebra Institute