ワークフロー 5 ステップを1つのセッション内で順に実行します。各ステップはエンジンで実行済みで、以下の出力は実際に生成されたものです。
balance[principal_, monthly_, rate_, months_] := principal (1 + rate)^months + monthly ((1 + rate)^months - 1)/rate出力なし - このステップは次のステップの準備をします。
after30years = N[balance[20000, 500, 0.07/12, 360]]772315.4473951627doublingYears = N[Log[2]/(12 Log[1 + 0.07/12])]9.930955714667654N[D[balance[20000, 500, r/12, 360], r] /. r -> 0.07]1.687752907426951*^7Plot[balance[20000, 500, r/12, 360], {r, 0.02, 0.10}]-Graphics-