- Split input into 3 regimes
if i < -5.07656373770712e-06
Initial program 28.9
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied add-exp-log28.9
\[\leadsto 100 \cdot \frac{{\color{blue}{\left(e^{\log \left(1 + \frac{i}{n}\right)}\right)}}^{n} - 1}{\frac{i}{n}}\]
Applied pow-exp28.9
\[\leadsto 100 \cdot \frac{\color{blue}{e^{\log \left(1 + \frac{i}{n}\right) \cdot n}} - 1}{\frac{i}{n}}\]
Applied simplify6.2
\[\leadsto 100 \cdot \frac{e^{\color{blue}{n \cdot \log_* (1 + \frac{i}{n})}} - 1}{\frac{i}{n}}\]
if -5.07656373770712e-06 < i < 5.432341925666689e-07
Initial program 58.0
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
Taylor expanded around 0 57.7
\[\leadsto 100 \cdot \frac{\color{blue}{\left(\frac{1}{2} \cdot {i}^{2} + \left(1 + i\right)\right)} - 1}{\frac{i}{n}}\]
Applied simplify26.9
\[\leadsto \color{blue}{\frac{100}{\frac{i}{n}} \cdot (i \cdot \left(i \cdot \frac{1}{2}\right) + i)_*}\]
- Using strategy
rm Applied pow126.9
\[\leadsto \frac{100}{\frac{i}{n}} \cdot \color{blue}{{\left((i \cdot \left(i \cdot \frac{1}{2}\right) + i)_*\right)}^{1}}\]
Applied pow126.9
\[\leadsto \color{blue}{{\left(\frac{100}{\frac{i}{n}}\right)}^{1}} \cdot {\left((i \cdot \left(i \cdot \frac{1}{2}\right) + i)_*\right)}^{1}\]
Applied pow-prod-down26.9
\[\leadsto \color{blue}{{\left(\frac{100}{\frac{i}{n}} \cdot (i \cdot \left(i \cdot \frac{1}{2}\right) + i)_*\right)}^{1}}\]
Applied simplify8.8
\[\leadsto {\color{blue}{\left(n \cdot \left(\frac{100}{1} \cdot (\frac{1}{2} \cdot i + 1)_*\right)\right)}}^{1}\]
if 5.432341925666689e-07 < i
Initial program 33.5
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied div-inv33.5
\[\leadsto 100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\color{blue}{i \cdot \frac{1}{n}}}\]
Applied add-cube-cbrt33.5
\[\leadsto 100 \cdot \frac{\color{blue}{\left(\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1} \cdot \sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}\right) \cdot \sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}}{i \cdot \frac{1}{n}}\]
Applied times-frac33.5
\[\leadsto 100 \cdot \color{blue}{\left(\frac{\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1} \cdot \sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}{i} \cdot \frac{\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}{\frac{1}{n}}\right)}\]
Applied associate-*r*33.5
\[\leadsto \color{blue}{\left(100 \cdot \frac{\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1} \cdot \sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}{i}\right) \cdot \frac{\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}{\frac{1}{n}}}\]
- Recombined 3 regimes into one program.
Applied simplify11.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;i \le -5.07656373770712 \cdot 10^{-06}:\\
\;\;\;\;100 \cdot \frac{e^{n \cdot \log_* (1 + \frac{i}{n})} - 1}{\frac{i}{n}}\\
\mathbf{if}\;i \le 5.432341925666689 \cdot 10^{-07}:\\
\;\;\;\;n \cdot \left(\frac{100}{1} \cdot (\frac{1}{2} \cdot i + 1)_*\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1} \cdot \sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}{i} \cdot 100\right) \cdot \frac{\sqrt[3]{{\left(1 + \frac{i}{n}\right)}^{n} - 1}}{\frac{1}{n}}\\
\end{array}}\]