单利计算与演示

单利计算与演示
几何画板及绘图内容加载中,请稍等……
2016-02-03 14:47
所属专题 S3百分比
本范例演示了单利的计算方法。用户可以通过输入本金、利率和时间等参数,动态计算单利利息及最终金额。该工具支持中英文界面切换,并通过表格和文本直观展示计算过程与结果,适用于基础金融数学和代数教学。使用了If, Sequence, Zip, Append, Textfield等GeoGebra命令。

GeoGebra 命令及参数

  1. If(lang ≟ 1, {"每年一結(每年派息1次)", "每半年一結(每年派息2次)", "每季一結(每年派息4次)", "每月一結(每年派息12次)"}, {"yearly", "half-yearly", "quarterly", "monthly"}) → listChoice
  2. If(SelectedIndex[listChoice] ≟ 1, 1, If[SelectedIndex[listChoice] ≟ 2, 2, If[SelectedIndex[listChoice] ≟ 3, 4, 12]]) → k
  3. If(k ≟ 1, "Year", If[k ≟ 2, "Half-year", If[k ≟ 4, "Quarter", "Month"]]) → textUnitENG
  4. If(k ≟ 1, "年", If[k ≟ 2, "個半年", If[k ≟ 4, "季", "月"]]) → textUnit
  5. Sequence(Pr, i, 0, n - 1) → list0
  6. Zip(Text[k], k, list0) → list1
  7. Zip("\violet{" + (k) + "×" + (Text[r]) + "%}", k, list1) → list2
  8. Zip("\violet{" + (Text[(k * r / 100)]) + "}", k, list0) → list3
  9. Sequence("\blue{" + (Text[Pr + ((Pr * i) * r / 100)]) + "}", i, 1, n) → list4
  10. Append("\scalebox{0.8}{" + (If[lang ≟ 1, "本金", "\text{Principal}"]) + "}", list1) → list1'
  11. Append("\scalebox{0.8}{" + (If[lang ≟ 1, "利息計算方法", "\text{Computation of Interest}"]) + "}", list2) → list2'
  12. Append("\scalebox{0.8}{" + (If[lang ≟ 1, "利息", "\text{Interest}"]) + "}", list3) → list3'
  13. Append("\vspace{20}---", Sequence[If[lang ≟ 1, "\red{第" + (Text[i]) + textUnit + "}", "\red{\text{" + textUnitENG + " " + (Text[i]) + "}}"], i, 1, n]) → listN
  14. Append("\scalebox{0.8}{" + (If[lang ≟ 1, "本利和(本金加利息)", "\text{Amount}"]) + "}", list4) → list4'
  15. Textfield(Pr) → InputBox1

AI 绘图提示语参考

创建一个交互式图形,展示简单利息计算。用户可输入本金、年利率和时间段,图形动态显示利息和最终金额。包含表格和文本,展示计算过程,支持中英文界面。表格列示本金、利率、时间、利息和总额,帮助理解变量关系。图形应能动态反映参数变化对结果的影响,如本金或时间增加,利息按比例增加,直观展示正比例关系。
以上提示语为根据原始绘图命令整理而来,仅供参考。