← 수업 제작 도구
홈 › Components › Graph and Graphing Calc › 화면 25

화면 25. Graph.function [sink]

원본: Computation Layer 문서(Graph) · Try It (원본 화면)

화면 번호25 / 29
문서 항목 설명 (원문)Sets the output of simpleFunction() to a variable defined in the graph.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 25 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1equationGraph그래프
# Get the latex string from "equationInput" and assign
# it to f in the calculator.
▷ "equationInput"에서 latex 글자를 가져와 계산기의 f에 넣는다.

function("f"): simpleFunction(equationInput.latex, "x")
▶ 그래프의 함수 "f"는 수식 답변 equationInput에 입력한 식의 LaTeX 글자를 x에 대한 함수로 바꾼 것(simpleFunction(equationInput.latex, "x"))으로 한다.
equationInput.latex는 수식 답변 equationInput에 학생이 입력한 식의 LaTeX 글자를 가져오고, simpleFunction(식, "x")는 그 글자를 x에 대한 함수로 바꾼다. function은 simpleFunction의 결과를 그래프의 변수에 넣는다. 학생이 입력한 식이 그래프의 함수 "f"가 된다.