线性方程优化问题示例
几何画板及绘图内容加载中,请稍等……
这个范例演示了如何通过线性方程解决优化问题。核心数学概念包括线性方程和优化问题。通过使用GeoGebra命令如Sequence, Zip, Segment, Slope等,可以构建优化问题的图形。适合高中数学教学和学习。
GeoGebra 命令及参数
LaTeX(steps) → counterLaTeX("\text{Move the slider to solve the problem.}") → text0LaTeX("\text{Use the buttons below to return to the original}\cr\text{problem or randomly generate a similar practice}\cr\text{problem.}") → RandomizationTextCorner(2, 3) → toprightCorner(2, 1) → bottomleftSequence(k, k, 2010, 2017, 0.25) → YearsLaTeX((((("\text{The graph on the right shows how the value of a stock}\cr\text{has changed over a period of time. What is the}\cr\text{average rate of change from " * startYear) * " to ") * endYear) * "?}")) → ProblemLaTeX("\text{Determine the interval to be observed.}") → text1LaTeX((((((((("\text{The interval to be observed is }\textcolor{#000099}{[" * startYear) * ", ") * endYear) * "]}\text{, or}\cr\text{where }\textcolor{#000099}{") * startYear) * " ≤ x ≤ ") * endYear) * "}\text{.}")) → text2LaTeX("\text{Identify the initial point of the interval.}") → text3LaTeX("\text{Identify the endpoint of the interval.}") → text5LaTeX((((((("\text{The }\textcolor{#000099}{x}\text{-value of the initial point is }\textcolor{#000099}{" * startYear) * "}\text{. The}\cr\text{corresponding }\textcolor{#000099}{y}\text{-value is approximately }\textcolor{#000099}{") * y(StartPoint)) * "}\text{.}\cr\text{The coordinates of the initial point of the interval}\cr\text{are about }\textcolor{#000099}{") * StartPoint) * "}\text{.}")) → text4Zip((j, k), j, Years, k, SharePrices) → DataLaTeX((((((("\text{The }\textcolor{#000099}{x}\text{-value of the final point is }\textcolor{#000099}{" * endYear) * "}\text{. The}\cr\text{corresponding }\textcolor{#000099}{y}\text{-value is approximately }\textcolor{#000099}{") * y(EndPoint)) * "}\text{.}\cr\text{The coordinates of the final point of the interval}\cr\text{are about }\textcolor{#000099}{") * EndPoint) * "}\text{.}")) → text6LaTeX("\text{Substitute the coordinates of the two points into the}\cr\text{slope formula to calculate the average rate of change.}") → text7Segment(StartPoint, EndPoint) → fSlope(f) → aIf(round(a, 0) ≟ changeRate, LaTeX[(abs(changeRate) * ".00")], LaTeX[(abs(changeRate) * "0")]) → rateTextIf(a < 0, "-", "") → rateSignTableText({{LaTeX["\textcolor{#000099}{m=\frac{y_2-y_1}{x_2-x_1}}"], LaTeX["\text{Slope formula}"]}}) → text8LaTeX((((((((("\text{The average rate of change for the price of this stock over the interval}\cr\text{[}" * startYear) * ", ") * endYear) * "\text{] is approximately }") * rateSign) * "\$") * rateText) * "\text{ per year.}")) → text12TableText({{LaTeX["\textcolor{#000099}{m=\frac{y_2-y_1}{x_2-x_1}}"], LaTeX["\text{Slope formula}"]}, {LaTeX[(((((((("\textcolor{#000099}{m=\frac{(" * y(EndPoint)) * ")-(") * y(StartPoint)) * ")}{(") * x(EndPoint)) * ")-(") * x(StartPoint)) * ")}}")], LaTeX[(("\text{Substitute }\textcolor{#000099}{" * StartPoint) * "}")]}, {LaTeX["\text{}"], LaTeX["\text{for }\textcolor{#000099}{(x_1,y_1)}"]}, {LaTeX["\text{}"], LaTeX[(("\text{and }\textcolor{#000099}{" * EndPoint) * "}")]}, {LaTeX["\text{}"], LaTeX["\text{for }\textcolor{#000099}{(x_2,y_2)}\text{.}"]}}) → text9TableText({{LaTeX["\textcolor{#000099}{m=\frac{y_2-y_1}{x_2-x_1}}"], LaTeX["\text{Slope formula}"]}, {LaTeX[(((((((("\textcolor{#000099}{m=\frac{(" * y(EndPoint)) * ")-(") * y(StartPoint)) * ")}{(") * x(EndPoint)) * ")-(") * x(StartPoint)) * ")}}")], LaTeX[(("\text{Substitute }\textcolor{#000099}{" * StartPoint) * "}")]}, {LaTeX["\text{}"], LaTeX["\text{for }\textcolor{#000099}{(x_1,y_1)}"]}, {LaTeX["\text{}"], LaTeX[(("\text{and }\textcolor{#000099}{" * EndPoint) * "}")]}, {LaTeX["\text{}"], LaTeX["\text{for }\textcolor{#000099}{(x_2,y_2)}\text{.}"]}, {LaTeX[(((("\textcolor{#000099}{m=\frac{" * rise) * "}{") * run) * "}}")], LaTeX["\text{Subtract.}"]}}) → text10TableText({{LaTeX["\textcolor{#000099}{m=\frac{y_2-y_1}{x_2-x_1}}"], LaTeX["\text{Slope formula}"]}, {LaTeX[(((((((("\textcolor{#000099}{m=\frac{(" * y(EndPoint)) * ")-(") * y(StartPoint)) * ")}{(") * x(EndPoint)) * ")-(") * x(StartPoint)) * ")}}")], LaTeX[(("\text{Substitute }\textcolor{#000099}{" * StartPoint) * "}")]}, {LaTeX["\text{}"], LaTeX["\text{for }\textcolor{#000099}{(x_1,y_1)}"]}, {LaTeX["\text{}"], LaTeX[(("\text{and }\textcolor{#000099}{" * EndPoint) * "}")]}, {LaTeX["\text{}"], LaTeX["\text{for }\textcolor{#000099}{(x_2,y_2)}\text{.}"]}, {LaTeX[(((("\textcolor{#000099}{m=\frac{" * rise) * "}{") * run) * "}}")], LaTeX["\text{Subtract.}"]}, {LaTeX[(("\textcolor{#000099}{m=" * changeRate) * "}")], LaTeX["\text{Divide.}"]}}) → text11