simulated_expensive_calculation` to one place and storing the result in the
`expensive_result` variable</span>
-->
<p><span class="caption">リスト13-4: 複数の<code>simulated_expensive_calculation</code>の呼び出しを1箇所に抽出し、
結果を<code>expensive_result</code>変数に保存する</span></p>
<!--
This change unifies all the calls to `simulated_expensive_calculation` and
solves the problem of the first `if` block unnecessarily calling the function
twice. Unfortunately, we’re now 