体积猜测器:圆柱体容积的交互式估算游戏
几何画板及绘图内容加载中,请稍等……
① 本范例演示一个交互式体积猜测游戏:用户面对一个圆柱体容器,需要猜测其中液体体积与总容积的比例,并通过滑块或输入框提交猜测,系统会给出反馈。② 核心数学概念包括圆柱体体积公式(V=πr²h)、体积比例、单位换算(如加仑与立方单位)、以及随机生成参数下的估算与比较。③ 作图要点:从构造摘要可见,使用了GeoGebra的随机命令(Random、RandomElement)生成圆柱高度和半径,通过Circle和Cylinder构建三维圆柱体,用Textfield和InputBox1接收用户输入,用If和RemoveUndefined处理条件判断,并用按钮(button1、button2)控制步骤推进;对象如cylinderHeight、liquidHeight、heightRatio、fakeCylinderVolume等用于计算和显示。④ 适合中学阶段(初中高年级至高中)学习立体几何体积概念、比例推理和估算策略,也可用于数学游戏化教学或课堂互动练习。
GeoGebra 命令及参数
Element({5, 10, 20, 50, 100}, g) → maxVolumeRandom(1, maxVolume) → cylinderVolumeRandom(1, cylinderVolume) → liquidVolumeRandom(1, maxVolume) → fakeCylinderVolumeRemoveUndefined({If[a, "gallon"], If[b, "quart"], If[c, "pint"], If[d, "cup"], If[e, "liter"], If[f, "milliliter"]}) → unitsRemoveUndefined({"Select a unit for your guess", If[a, "gallons"], If[b, "quarts"], If[c, "pints"], If[d, "cups"], If[e, "liters"], If[f, "milliliters"]}) → guessUnitsRandomElement(units) → unitTextfield(guessText) → InputBox1Circle((0, 0, ((-cylinderHeight)) / 3), width / 2, Vector[(0, 0, 1)]) → cylinderBaseCylinder(cylinderBase, cylinderHeight) → h_2, h_2, h_3Cylinder(cylinderBase, liquidHeight) → h, h_4, h_5Circle((0, 0, ((-cylinderHeight)) / 3), width / 2 + 0.1, Vector[(0, 0, 1)]) → cylinderBase2Cylinder(cylinderBase2, cylinderHeight) → j, j_2, j_3If(Defined[fakeGuess], fakeGuess, 0) → realGuessCylinder(cylinderBase, guessHeight) → i, k, lRemoveUndefined({"Select a unit for the answer", If[a, "gallons"], If[b, "quarts"], If[c, "pints"], If[d, "cups"], If[e, "liters"], If[f, "milliliters"]}) → answerUnitsIf(Defined[IndexOf[unit, {"gallon", "quart", "pint", "cup"}]], "US", "metric") → answerSystemIf(Defined[IndexOf[SelectedElement[answerUnits], {"gallons", "quarts", "pints", "cups"}]], "US", "metric") → otherAnswerSystem