orderedPair (type) (타입 orderedPair)
원본: Computation Layer 문서(orderedPair (type))
순서쌍을 나타낸다.
원문(영어) 보기
Represents an ordered pair.
만들기(Creating)
parseOrderedPair
latex 글자(예: "(a,2)")를 받아 x: "a", y: "2" 같은 좌표 쌍을 돌려준다.
원문(영어) 보기
Takes a latex string - e.g. "(a,2)" - and returns a coordinate pair - e.g. x: "a", y: "2".
# Get the latex string from the expression input component # "orderedPairInput". Create an orderedPair object using # parseOrderedPair and then assign that object to the # Computation Layer variable "myPair". ▷ 수식 답변 구성요소 "orderedPairInput"에서 latex 글자를 가져온다. parseOrderedPair로 orderedPair 객체를 만들고, 그 객체를 Computation Layer 변수 "myPair"에 정한다. myPair = parseOrderedPair(orderedPairInput.latex) ▶ 변수 myPair는 수식 답변 orderedPairInput에 입력된 latex로 만든 순서쌍 객체(parseOrderedPair(orderedPairInput.latex))로 한다.parseOrderedPair(…)는 latex 글자(예: "(a,2)")를 받아 x: "a", y: "2"처럼 순서쌍 객체를 돌려주고,latex는 입력한 식의 LaTeX 글자를 가져온다. # Assign the numeric value of the x property # of the orderedPair object named "myPair" to # the calculator variable "x_last". ▷ orderedPair 객체 "myPair"의 x 속성의 숫자 값을 계산기 변수 "x_last"에 정한다. number("x_{last}"): numericValue(myPair.x) ▶ 그래프의 변수 x_{last}는numericValue(myPair.x), 즉 순서쌍의 x(첫 번째 원소의 latex)를 숫자로 계산한 값으로 한다.number("이름")은 그래핑 계산기 안의 변수 값을 정한다.numericValue(…)는 latex 글자를 숫자로 계산한다. # Assign the numeric value of the y property # of the orderedPair object named "myPair" to # the calculator variable "y_last". ▷ orderedPair 객체 "myPair"의 y 속성의 숫자 값을 계산기 변수 "y_last"에 정한다. number("y_{last}"): numericValue(myPair.y) ▶ 그래프의 변수 y_{last}는numericValue(myPair.y), 즉 순서쌍의 y(두 번째 원소의 latex)를 숫자로 계산한 값으로 한다.
속성(Attributes)
x
쌍의 첫 번째 원소의 latex 글자.
원문(영어) 보기
Latex string for first element of pair
# Get the latex string from the expression input component # "orderedPairInput". Create an orderedPair object using # parseOrderedPair and then assign that object to the # Computation Layer variable "myPair". ▷ 수식 답변 구성요소 "orderedPairInput"에서 latex 글자를 가져온다. parseOrderedPair로 orderedPair 객체를 만들고, 그 객체를 Computation Layer 변수 "myPair"에 정한다. myPair = parseOrderedPair(orderedPairInput.latex) ▶ 변수 myPair는 수식 답변 orderedPairInput에 입력된 latex로 만든 순서쌍 객체(parseOrderedPair(orderedPairInput.latex))로 한다.parseOrderedPair(…)는 latex 글자(예: "(a,2)")를 받아 x: "a", y: "2"처럼 순서쌍 객체를 돌려주고,latex는 입력한 식의 LaTeX 글자를 가져온다. # Assign the numeric value of the x property # of the orderedPair object named "myPair" to # the calculator variable "x_last". ▷ orderedPair 객체 "myPair"의 x 속성의 숫자 값을 계산기 변수 "x_last"에 정한다. number("x_{last}"): numericValue(myPair.x) ▶ 그래프의 변수 x_{last}는numericValue(myPair.x), 즉 순서쌍의 x(첫 번째 원소의 latex)를 숫자로 계산한 값으로 한다.number("이름")은 그래핑 계산기 안의 변수 값을 정한다.numericValue(…)는 latex 글자를 숫자로 계산한다. # Assign the numeric value of the y property # of the orderedPair object named "myPair" to # the calculator variable "y_last". ▷ orderedPair 객체 "myPair"의 y 속성의 숫자 값을 계산기 변수 "y_last"에 정한다. number("y_{last}"): numericValue(myPair.y) ▶ 그래프의 변수 y_{last}는numericValue(myPair.y), 즉 순서쌍의 y(두 번째 원소의 latex)를 숫자로 계산한 값으로 한다.
y
쌍의 두 번째 원소의 latex 글자.
원문(영어) 보기
Latex string for second element of pair
# Get the latex string from the expression input component # "orderedPairInput". Create an orderedPair object using # parseOrderedPair and then assign that object to the # Computation Layer variable "myPair". ▷ 수식 답변 구성요소 "orderedPairInput"에서 latex 글자를 가져온다. parseOrderedPair로 orderedPair 객체를 만들고, 그 객체를 Computation Layer 변수 "myPair"에 정한다. myPair = parseOrderedPair(orderedPairInput.latex) ▶ 변수 myPair는 수식 답변 orderedPairInput에 입력된 latex로 만든 순서쌍 객체(parseOrderedPair(orderedPairInput.latex))로 한다.parseOrderedPair(…)는 latex 글자(예: "(a,2)")를 받아 x: "a", y: "2"처럼 순서쌍 객체를 돌려주고,latex는 입력한 식의 LaTeX 글자를 가져온다. # Assign the numeric value of the x property # of the orderedPair object named "myPair" to # the calculator variable "x_last". ▷ orderedPair 객체 "myPair"의 x 속성의 숫자 값을 계산기 변수 "x_last"에 정한다. number("x_{last}"): numericValue(myPair.x) ▶ 그래프의 변수 x_{last}는numericValue(myPair.x), 즉 순서쌍의 x(첫 번째 원소의 latex)를 숫자로 계산한 값으로 한다.number("이름")은 그래핑 계산기 안의 변수 값을 정한다.numericValue(…)는 latex 글자를 숫자로 계산한다. # Assign the numeric value of the y property # of the orderedPair object named "myPair" to # the calculator variable "y_last". ▷ orderedPair 객체 "myPair"의 y 속성의 숫자 값을 계산기 변수 "y_last"에 정한다. number("y_{last}"): numericValue(myPair.y) ▶ 그래프의 변수 y_{last}는numericValue(myPair.y), 즉 순서쌍의 y(두 번째 원소의 latex)를 숫자로 계산한 값으로 한다.