← 수업 제작 도구
홈 › Index › equation (type)

equation (type) (타입 equation)

원본: Computation Layer 문서(equation (type))

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다. 항목 설명은 번역이 아니라 해석이며 원문은 접어 둔 "원문(영어) 보기"에 있다.

수학 방정식을 나타낸다.

원문(영어) 보기

Represents a mathematical equation.

만들기(Creating)

parseEquation function:parseEquation

latex 글자(예: "2x+y=1")를 받아 방정식(equation) 객체를 돌려준다.

원문(영어) 보기

Takes a latex string, e.g. "2x+y=1" - and returns an equation object

content:
# Parses and displays separately the
# left and right hand sides of an equation.
▷ 방정식의 좌변과 우변을 분석해 따로따로 표시한다.
"Enter an equation.

lhs = `${parseEquation(input.latex).lhs}`
rhs = `${parseEquation(input.latex).rhs}`"
▶ 메모의 내용(content)은 "Enter an equation."(방정식을 입력하시오.) 다음에 빈 줄을 두고 "lhs = `${parseEquation(input.latex).lhs}`", 그 다음 줄에 "rhs = `${parseEquation(input.latex).rhs}`"를 붙인 글로 한다.
parseEquation(latex)는 latex 글자(예: "2x+y=1")를 받아 방정식(equation) 객체를 돌려주고, lhs와 rhs는 방정식(부등식)의 좌변과 우변의 latex 글자이다. 백틱(`)으로 감싼 부분은 latex 값이고, ${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. content는 메모에 직접 적은 글을 덮어쓴다.

속성(Attributes)

rhs type:equation:rhs

방정식 우변의 latex 글자.

원문(영어) 보기

Latex string for right-hand side of equation

content:
# Parses and displays separately the
# left and right hand sides of an equation.
▷ 방정식의 좌변과 우변을 분석해 따로따로 표시한다.
"Enter an equation.

lhs = `${parseEquation(input.latex).lhs}`
rhs = `${parseEquation(input.latex).rhs}`"
▶ 메모의 내용(content)은 "Enter an equation."(방정식을 입력하시오.) 다음에 빈 줄을 두고 "lhs = `${parseEquation(input.latex).lhs}`", 그 다음 줄에 "rhs = `${parseEquation(input.latex).rhs}`"를 붙인 글로 한다.
parseEquation(latex)는 latex 글자(예: "2x+y=1")를 받아 방정식(equation) 객체를 돌려주고, lhs와 rhs는 방정식(부등식)의 좌변과 우변의 latex 글자이다. 백틱(`)으로 감싼 부분은 latex 값이고, ${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. content는 메모에 직접 적은 글을 덮어쓴다.

lhs type:equation:lhs

방정식 좌변의 latex 글자.

원문(영어) 보기

Latex string for left-hand side of equation

content:
# Parses and displays separately the
# left and right hand sides of an equation.
▷ 방정식의 좌변과 우변을 분석해 따로따로 표시한다.
"Enter an equation.

lhs = `${parseEquation(input.latex).lhs}`
rhs = `${parseEquation(input.latex).rhs}`"
▶ 메모의 내용(content)은 "Enter an equation."(방정식을 입력하시오.) 다음에 빈 줄을 두고 "lhs = `${parseEquation(input.latex).lhs}`", 그 다음 줄에 "rhs = `${parseEquation(input.latex).rhs}`"를 붙인 글로 한다.
parseEquation(latex)는 latex 글자(예: "2x+y=1")를 받아 방정식(equation) 객체를 돌려주고, lhs와 rhs는 방정식(부등식)의 좌변과 우변의 latex 글자이다. 백틱(`)으로 감싼 부분은 latex 값이고, ${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. content는 메모에 직접 적은 글을 덮어쓴다.

differenceFunction type:equation:differenceFunction

방정식의 (lhs) - (rhs)를 나타내는 simpleFunction. 0과 같다고 놓고 검사하거나 그릴 때 쓸 만하다. (코드 주석의 예시는 우변에서 좌변을 뺀 꼴이다.)

원문(영어) 보기

simpleFunction representing for (lhs) - (rhs) of an equation. Useful for setting equal to zero to test or plot

# Difference function takes the lhs of the equation and subtracts it
# from the rhs.
▷ 차 함수(difference function)는 방정식의 좌변(lhs)을 우변(rhs)에서 뺀다.

# EXAMPLE: 3x+5 = y-2 -> (y-2)-(3x+5)
▷ 예: 3x+5 = y-2 -> (y-2)-(3x+5)

# This can be sent into a graph as a two variable function.
▷ 이 함수는 그래프에 두 변수 함수로 보낼 수 있다.

function("f"): parseEquation(input.latex).differenceFunction("x","y")
▶ 그래프의 함수 f(function("f"))는 parseEquation(input.latex).differenceFunction("x","y")로 한다.
function("이름")은 simpleFunction()의 결과를 그래프에 정의된 변수에 정하고, parseEquation(latex)는 latex 글자(예: "2x+y=1")를 받아 방정식(equation) 객체를 돌려준다. .differenceFunction("x","y")는 방정식의 두 변의 차를 나타내는 simpleFunction을 만들며, 0과 같다고 놓고 검사하거나 그릴 때 쓸 만하다.