一元一次方程实例
几何画板及绘图内容加载中,请稍等……
本范例演示如何将文字描述转换为数学方程。核心数学概念是一元一次方程。作图要点包括使用 If 语句、LaTeX、Corner、FractionText 和 TableText 命令。适合初中数学教学。
GeoGebra 命令及参数
If(operation1 ≟ "sum", equals - simplen, equals + simplen) → newEqualsnLaTeX(steps) → counterLaTeX("\text{Use the buttons below to return to the original problem or}\cr\text{randomly generate a similar practice problem.}") → RandomizationTextCorner(1) → ACorner(3) → BLaTeX("\text{Apply the Distributive Property.}") → text1LaTeX("\text{Isolate the variable in the resulting equation.}") → text8FractionText(simplen) → simpleLaTeX((((((((((((((((((((((("\text{" * numWord) * " ") * denWord) * " of the ") * operation1) * " of a number ") * operation2) * " ") * add) * " is ") * equals) * "}\cr\textcolor{#000099}{\frac{") * num) * "}{") * denom) * "}\left(x") * operation3) * "") * add) * "\right)=") * equals) * "}")) → ProblemLaTeX((((("\text{The Distributive Property states that }\textcolor{#000099}{a(b " * operation3) * " c) = ab ") * operation3) * " ac}.")) → text2LaTeX((((((((((((((("\text{For }\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}\left(x") * operation3) * "") * add) * "\right)=") * equals) * "}\text{ each of the terms in parentheses needs to be multiplied by }\textcolor{#000099}{\frac{") * num) * "}{") * denom) * "}}.")) → text3LaTeX((("\text{Apply the " * operation4) * " Property of Equality.}")) → text10FractionText(newEqualsn) → newEqualsLaTeX((((((((("\text{In order to isolate the variable, the term }\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x}\text{ must first be isolated. Look at the}\cr\text{operation being used on the term with }\textcolor{#000099}{\frac{") * num) * "}{") * denom) * "}x}\text{, and use the opposite operation to}\cr\text{isolate the term. }")) → text9FractionText(xvaln) → xvalLaTeX((((((((((((("\text{The value for }\textcolor{#000099}{x}\text{ in }\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}\left(x") * operation3) * "") * add) * "\right)=") * equals) * "}\text{ is }\textcolor{#000099}{") * xval) * "}.")) → text18LaTeX((((((("\text{By " * operation5) * " }\textcolor{#000099}{") * simple) * "}\text{ ") * operationPrep) * " both sides of the equation, both sides of the equation will}\cr\text{remain equal, but the term containing the variable }\textcolor{#000099}{x}\text{ will be isolated.}")) → text11TableText({{LaTeX[(((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}\left(x") * operation3) * "") * add) * "\right)=") * equals) * "}")], LaTeX["\text{Original equation}"]}, {LaTeX[(((((((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x ") * operation3) * " \frac{") * num) * "}{") * denom) * "}(") * add) * ")=") * equals) * "}")], LaTeX["\text{Distribute.}"]}, {LaTeX[(((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x ") * operation3) * " ") * simple) * "=") * equals) * "}")], LaTeX["\text{Simplify.}"]}}, "l") → text6LaTeX((((((((((("\text{Once the Distributive Property is applied, the resulting equation is }\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x ") * operation3) * " ") * simple) * "=") * equals) * ".}")) → text7TableText({{LaTeX[(((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x ") * operation3) * " ") * simple) * "=") * equals) * "}")], LaTeX["\text{Equation from the previous step}"]}, {LaTeX[(((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x =") * newEquals) * "}")], LaTeX[(((((("\text{" * operation6) * " }\textcolor{#000099}{") * simple) * "}\text{ ") * operationPrep) * " both sides of the equation.}")]}}, "l") → text13LaTeX((((("\text{In order to isolate }\textcolor{#000099}{x}\text{ from the term }\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x}\text{, apply the Multiplication Property of Equality.}")) → text14TableText({{LaTeX[(((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x =") * newEquals) * "}")], LaTeX["\text{Equation from the previous step}"]}, {LaTeX[(("\textcolor{#000099}{x =" * xval) * "}")], LaTeX[(((("\text{Multiply both sides by the reciprocal, }\textcolor{#000099}{\frac{" * denom) * "}{") * num) * "}.}")]}}, "l") → text17TableText({{LaTeX[(((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}\left(x") * operation3) * "") * add) * "\right)=") * equals) * "}")], LaTeX["\text{Original equation}"]}}, "l") → text4TableText({{LaTeX[(((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}\left(x") * operation3) * "") * add) * "\right)=") * equals) * "}")], LaTeX["\text{Original equation}"]}, {LaTeX[(((((((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x ") * operation3) * " \frac{") * num) * "}{") * denom) * "}(") * add) * ")=") * equals) * "}")], LaTeX["\text{Distribute.}"]}}, "l") → text5TableText({{LaTeX[(((((((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x ") * operation3) * " ") * simple) * "=") * equals) * "}")], LaTeX["\text{Equation from the previous step}"]}}, "l") → text12TableText({{LaTeX[(((((("\textcolor{#000099}{\frac{" * num) * "}{") * denom) * "}x =") * newEquals) * "}")], LaTeX["\text{Equation from the previous step}"]}}, "l") → text16LaTeX("\text{Move the slider to solve the problem.}") → text0LaTeX((((((((("\text{By multiplying both sides of the equation by }\textcolor{#000099}{\frac{" * denom) * "}{") * num) * "}}\text{ (the reciprocal of }\textcolor{#000099}{\frac{") * num) * "}{") * denom) * "}}\text{), both sides}\cr\text{of the equation will remain equal, but the }\textcolor{#000099}{x}\text{ will be isolated.}")) → text15
AI 绘图提示语参考
展示线性方程的解题过程,包括应用分配律和等式性质化简方程,并最终求解变量x。用不同颜色标注关键步骤和公式,用表格对比各步骤的方程变化,并添加文字说明每一步的操作。初始方程为分数形式的变量乘积,通过分配律展开后化简,最后通过等式性质求解x的值。
以上提示语为根据原始绘图命令整理而来,仅供参考。