- Split input into 4 regimes
if i < -4.311627950501261e-19
Initial program 29.6
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied add-exp-log29.7
\[\leadsto 100 \cdot \frac{{\color{blue}{\left(e^{\log \left(1 + \frac{i}{n}\right)}\right)}}^{n} - 1}{\frac{i}{n}}\]
Applied pow-exp29.7
\[\leadsto 100 \cdot \frac{\color{blue}{e^{\log \left(1 + \frac{i}{n}\right) \cdot n}} - 1}{\frac{i}{n}}\]
Applied simplify7.2
\[\leadsto 100 \cdot \frac{e^{\color{blue}{n \cdot \log_* (1 + \frac{i}{n})}} - 1}{\frac{i}{n}}\]
if -4.311627950501261e-19 < i < 0.0047815638446876965
Initial program 57.8
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
Taylor expanded around 0 57.6
\[\leadsto 100 \cdot \frac{\color{blue}{\left(\frac{1}{2} \cdot {i}^{2} + \left(1 + i\right)\right)} - 1}{\frac{i}{n}}\]
Applied simplify25.7
\[\leadsto \color{blue}{\frac{(50 \cdot \left(i \cdot i\right) + \left(100 \cdot i\right))_*}{\frac{i}{n}}}\]
- Using strategy
rm Applied *-un-lft-identity25.7
\[\leadsto \frac{(50 \cdot \left(i \cdot i\right) + \left(100 \cdot i\right))_*}{\color{blue}{1 \cdot \frac{i}{n}}}\]
Applied *-un-lft-identity25.7
\[\leadsto \frac{\color{blue}{1 \cdot (50 \cdot \left(i \cdot i\right) + \left(100 \cdot i\right))_*}}{1 \cdot \frac{i}{n}}\]
Applied times-frac25.7
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{(50 \cdot \left(i \cdot i\right) + \left(100 \cdot i\right))_*}{\frac{i}{n}}}\]
Applied simplify25.7
\[\leadsto \color{blue}{1} \cdot \frac{(50 \cdot \left(i \cdot i\right) + \left(100 \cdot i\right))_*}{\frac{i}{n}}\]
Applied simplify9.2
\[\leadsto 1 \cdot \color{blue}{\left(\left(\frac{i}{i} \cdot (50 \cdot i + 100)_*\right) \cdot n\right)}\]
if 0.0047815638446876965 < i < 1.6123540503597488e+153
Initial program 32.1
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied add-exp-log42.6
\[\leadsto 100 \cdot \frac{{\color{blue}{\left(e^{\log \left(1 + \frac{i}{n}\right)}\right)}}^{n} - 1}{\frac{i}{n}}\]
Applied pow-exp42.6
\[\leadsto 100 \cdot \frac{\color{blue}{e^{\log \left(1 + \frac{i}{n}\right) \cdot n}} - 1}{\frac{i}{n}}\]
Applied expm1-def25.8
\[\leadsto 100 \cdot \frac{\color{blue}{(e^{\log \left(1 + \frac{i}{n}\right) \cdot n} - 1)^*}}{\frac{i}{n}}\]
if 1.6123540503597488e+153 < i
Initial program 31.4
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
Taylor expanded around inf 28.4
\[\leadsto 100 \cdot \frac{\color{blue}{e^{n \cdot \left(\log \left(\frac{1}{n}\right) - \log \left(\frac{1}{i}\right)\right)} - 1}}{\frac{i}{n}}\]
Applied simplify28.4
\[\leadsto \color{blue}{\frac{(\left(\frac{{i}^{n}}{{n}^{n}}\right) \cdot 100 + -100)_*}{\frac{i}{n}}}\]
- Recombined 4 regimes into one program.
Applied simplify11.1
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;i \le -4.311627950501261 \cdot 10^{-19}:\\
\;\;\;\;100 \cdot \frac{e^{n \cdot \log_* (1 + \frac{i}{n})} - 1}{\frac{i}{n}}\\
\mathbf{if}\;i \le 0.0047815638446876965:\\
\;\;\;\;n \cdot \left(\frac{i}{i} \cdot (50 \cdot i + 100)_*\right)\\
\mathbf{if}\;i \le 1.6123540503597488 \cdot 10^{+153}:\\
\;\;\;\;100 \cdot \frac{(e^{n \cdot \log \left(1 + \frac{i}{n}\right)} - 1)^*}{\frac{i}{n}}\\
\mathbf{else}:\\
\;\;\;\;\frac{(\left(\frac{{i}^{n}}{{n}^{n}}\right) \cdot 100 + -100)_*}{\frac{i}{n}}\\
\end{array}}\]