- Split input into 3 regimes
if i < -1.663235049845083e-202 or 2.9705069655040925e-187 < i < 1.5659021402349018e+88
Initial program 44.6
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied add-exp-log44.9
\[\leadsto 100 \cdot \frac{{\color{blue}{\left(e^{\log \left(1 + \frac{i}{n}\right)}\right)}}^{n} - 1}{\frac{i}{n}}\]
Applied pow-exp44.9
\[\leadsto 100 \cdot \frac{\color{blue}{e^{\log \left(1 + \frac{i}{n}\right) \cdot n}} - 1}{\frac{i}{n}}\]
Applied expm1-def37.8
\[\leadsto 100 \cdot \frac{\color{blue}{(e^{\log \left(1 + \frac{i}{n}\right) \cdot n} - 1)^*}}{\frac{i}{n}}\]
Simplified6.6
\[\leadsto 100 \cdot \frac{(e^{\color{blue}{n \cdot \log_* (1 + \frac{i}{n})}} - 1)^*}{\frac{i}{n}}\]
if -1.663235049845083e-202 < i < 2.9705069655040925e-187
Initial program 60.4
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied add-exp-log60.4
\[\leadsto 100 \cdot \frac{{\color{blue}{\left(e^{\log \left(1 + \frac{i}{n}\right)}\right)}}^{n} - 1}{\frac{i}{n}}\]
Applied pow-exp60.4
\[\leadsto 100 \cdot \frac{\color{blue}{e^{\log \left(1 + \frac{i}{n}\right) \cdot n}} - 1}{\frac{i}{n}}\]
Applied expm1-def57.8
\[\leadsto 100 \cdot \frac{\color{blue}{(e^{\log \left(1 + \frac{i}{n}\right) \cdot n} - 1)^*}}{\frac{i}{n}}\]
Simplified24.9
\[\leadsto 100 \cdot \frac{(e^{\color{blue}{n \cdot \log_* (1 + \frac{i}{n})}} - 1)^*}{\frac{i}{n}}\]
- Using strategy
rm Applied *-un-lft-identity24.9
\[\leadsto 100 \cdot \frac{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*}{\color{blue}{1 \cdot \frac{i}{n}}}\]
Applied add-cube-cbrt25.7
\[\leadsto 100 \cdot \frac{\color{blue}{\left(\sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*} \cdot \sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*}\right) \cdot \sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*}}}{1 \cdot \frac{i}{n}}\]
Applied times-frac25.7
\[\leadsto 100 \cdot \color{blue}{\left(\frac{\sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*} \cdot \sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*}}{1} \cdot \frac{\sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*}}{\frac{i}{n}}\right)}\]
Simplified25.7
\[\leadsto 100 \cdot \left(\color{blue}{\left(\sqrt[3]{(e^{\log_* (1 + \frac{i}{n}) \cdot n} - 1)^*} \cdot \sqrt[3]{(e^{\log_* (1 + \frac{i}{n}) \cdot n} - 1)^*}\right)} \cdot \frac{\sqrt[3]{(e^{n \cdot \log_* (1 + \frac{i}{n})} - 1)^*}}{\frac{i}{n}}\right)\]
Taylor expanded around 0 3.3
\[\leadsto 100 \cdot \color{blue}{\left(\frac{1}{6} \cdot \left({i}^{2} \cdot n\right) + \left(n + \frac{1}{2} \cdot \left(i \cdot n\right)\right)\right)}\]
Simplified3.3
\[\leadsto 100 \cdot \color{blue}{(\left(i \cdot n\right) \cdot \left((i \cdot \frac{1}{6} + \frac{1}{2})_*\right) + n)_*}\]
if 1.5659021402349018e+88 < i
Initial program 31.6
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
Taylor expanded around 0 29.1
\[\leadsto 100 \cdot \color{blue}{0}\]
- Recombined 3 regimes into one program.
Final simplification8.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;i \le -1.663235049845083 \cdot 10^{-202}:\\
\;\;\;\;100 \cdot \frac{(e^{\log_* (1 + \frac{i}{n}) \cdot n} - 1)^*}{\frac{i}{n}}\\
\mathbf{elif}\;i \le 2.9705069655040925 \cdot 10^{-187}:\\
\;\;\;\;100 \cdot (\left(n \cdot i\right) \cdot \left((i \cdot \frac{1}{6} + \frac{1}{2})_*\right) + n)_*\\
\mathbf{elif}\;i \le 1.5659021402349018 \cdot 10^{+88}:\\
\;\;\;\;100 \cdot \frac{(e^{\log_* (1 + \frac{i}{n}) \cdot n} - 1)^*}{\frac{i}{n}}\\
\mathbf{else}:\\
\;\;\;\;0 \cdot 100\\
\end{array}\]