- Split input into 4 regimes
if (* (* (exp (log (* (cbrt (+ 1 (* 1/2 i))) 100))) (pow (+ 1 (* 1/2 i)) 1/3)) (* (cbrt (+ 1 (* 1/2 i))) n)) < -3.834816283885112e+297 or -2.524949745714951e-223 < (* (* (exp (log (* (cbrt (+ 1 (* 1/2 i))) 100))) (pow (+ 1 (* 1/2 i)) 1/3)) (* (cbrt (+ 1 (* 1/2 i))) n)) < 2.1930611554132226e-256
Initial program 19.3
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied add-log-exp19.3
\[\leadsto 100 \cdot \frac{\color{blue}{\log \left(e^{{\left(1 + \frac{i}{n}\right)}^{n} - 1}\right)}}{\frac{i}{n}}\]
if -3.834816283885112e+297 < (* (* (exp (log (* (cbrt (+ 1 (* 1/2 i))) 100))) (pow (+ 1 (* 1/2 i)) 1/3)) (* (cbrt (+ 1 (* 1/2 i))) n)) < -2.524949745714951e-223 or 1.10824615154099e+31 < (* (* (exp (log (* (cbrt (+ 1 (* 1/2 i))) 100))) (pow (+ 1 (* 1/2 i)) 1/3)) (* (cbrt (+ 1 (* 1/2 i))) n)) < 1.4614977427470927e+286
Initial program 58.3
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
Taylor expanded around 0 60.7
\[\leadsto 100 \cdot \frac{\color{blue}{\left(\frac{1}{2} \cdot {i}^{2} + \left(1 + i\right)\right)} - 1}{\frac{i}{n}}\]
Applied simplify27.4
\[\leadsto \color{blue}{\frac{i \cdot \frac{1}{2} + 1}{\frac{\frac{i}{n}}{100 \cdot i}}}\]
- Using strategy
rm Applied *-un-lft-identity27.4
\[\leadsto \frac{i \cdot \frac{1}{2} + 1}{\frac{\color{blue}{1 \cdot \frac{i}{n}}}{100 \cdot i}}\]
Applied times-frac27.3
\[\leadsto \frac{i \cdot \frac{1}{2} + 1}{\color{blue}{\frac{1}{100} \cdot \frac{\frac{i}{n}}{i}}}\]
Applied add-cube-cbrt27.4
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{i \cdot \frac{1}{2} + 1} \cdot \sqrt[3]{i \cdot \frac{1}{2} + 1}\right) \cdot \sqrt[3]{i \cdot \frac{1}{2} + 1}}}{\frac{1}{100} \cdot \frac{\frac{i}{n}}{i}}\]
Applied times-frac27.3
\[\leadsto \color{blue}{\frac{\sqrt[3]{i \cdot \frac{1}{2} + 1} \cdot \sqrt[3]{i \cdot \frac{1}{2} + 1}}{\frac{1}{100}} \cdot \frac{\sqrt[3]{i \cdot \frac{1}{2} + 1}}{\frac{\frac{i}{n}}{i}}}\]
Applied simplify27.3
\[\leadsto \color{blue}{\left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot \sqrt[3]{1 + \frac{1}{2} \cdot i}\right)} \cdot \frac{\sqrt[3]{i \cdot \frac{1}{2} + 1}}{\frac{\frac{i}{n}}{i}}\]
Applied simplify10.6
\[\leadsto \left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot \sqrt[3]{1 + \frac{1}{2} \cdot i}\right) \cdot \color{blue}{\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot n\right)}\]
- Using strategy
rm Applied pow1/310.6
\[\leadsto \left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot \color{blue}{{\left(1 + \frac{1}{2} \cdot i\right)}^{\frac{1}{3}}}\right) \cdot \left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot n\right)\]
- Using strategy
rm Applied pow1/310.6
\[\leadsto \left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot {\left(1 + \frac{1}{2} \cdot i\right)}^{\frac{1}{3}}\right) \cdot \left(\color{blue}{{\left(1 + \frac{1}{2} \cdot i\right)}^{\frac{1}{3}}} \cdot n\right)\]
if 2.1930611554132226e-256 < (* (* (exp (log (* (cbrt (+ 1 (* 1/2 i))) 100))) (pow (+ 1 (* 1/2 i)) 1/3)) (* (cbrt (+ 1 (* 1/2 i))) n)) < 1.10824615154099e+31
Initial program 53.8
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
Taylor expanded around 0 55.4
\[\leadsto 100 \cdot \frac{\color{blue}{\left(\frac{1}{2} \cdot {i}^{2} + \left(1 + i\right)\right)} - 1}{\frac{i}{n}}\]
Applied simplify19.6
\[\leadsto \color{blue}{\frac{i \cdot \frac{1}{2} + 1}{\frac{\frac{i}{n}}{100 \cdot i}}}\]
- Using strategy
rm Applied *-un-lft-identity19.6
\[\leadsto \frac{i \cdot \frac{1}{2} + 1}{\frac{\color{blue}{1 \cdot \frac{i}{n}}}{100 \cdot i}}\]
Applied times-frac19.6
\[\leadsto \frac{i \cdot \frac{1}{2} + 1}{\color{blue}{\frac{1}{100} \cdot \frac{\frac{i}{n}}{i}}}\]
Applied add-cube-cbrt19.7
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{i \cdot \frac{1}{2} + 1} \cdot \sqrt[3]{i \cdot \frac{1}{2} + 1}\right) \cdot \sqrt[3]{i \cdot \frac{1}{2} + 1}}}{\frac{1}{100} \cdot \frac{\frac{i}{n}}{i}}\]
Applied times-frac19.5
\[\leadsto \color{blue}{\frac{\sqrt[3]{i \cdot \frac{1}{2} + 1} \cdot \sqrt[3]{i \cdot \frac{1}{2} + 1}}{\frac{1}{100}} \cdot \frac{\sqrt[3]{i \cdot \frac{1}{2} + 1}}{\frac{\frac{i}{n}}{i}}}\]
Applied simplify19.5
\[\leadsto \color{blue}{\left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot \sqrt[3]{1 + \frac{1}{2} \cdot i}\right)} \cdot \frac{\sqrt[3]{i \cdot \frac{1}{2} + 1}}{\frac{\frac{i}{n}}{i}}\]
Applied simplify27.6
\[\leadsto \left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot \sqrt[3]{1 + \frac{1}{2} \cdot i}\right) \cdot \color{blue}{\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot n\right)}\]
- Using strategy
rm Applied pow1/327.6
\[\leadsto \left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot \color{blue}{{\left(1 + \frac{1}{2} \cdot i\right)}^{\frac{1}{3}}}\right) \cdot \left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot n\right)\]
- Using strategy
rm Applied pow1/327.6
\[\leadsto \left(\left(\sqrt[3]{1 + \frac{1}{2} \cdot i} \cdot 100\right) \cdot {\left(1 + \frac{1}{2} \cdot i\right)}^{\frac{1}{3}}\right) \cdot \left(\color{blue}{{\left(1 + \frac{1}{2} \cdot i\right)}^{\frac{1}{3}}} \cdot n\right)\]
if 1.4614977427470927e+286 < (* (* (exp (log (* (cbrt (+ 1 (* 1/2 i))) 100))) (pow (+ 1 (* 1/2 i)) 1/3)) (* (cbrt (+ 1 (* 1/2 i))) n))
Initial program 29.7
\[100 \cdot \frac{{\left(1 + \frac{i}{n}\right)}^{n} - 1}{\frac{i}{n}}\]
- Using strategy
rm Applied associate-*r/29.7
\[\leadsto \color{blue}{\frac{100 \cdot \left({\left(1 + \frac{i}{n}\right)}^{n} - 1\right)}{\frac{i}{n}}}\]
- Recombined 4 regimes into one program.
Applied simplify19.1
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot e^{\log \left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right)}\right) \cdot \left(n \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \le -3.834816283885112 \cdot 10^{+297}:\\
\;\;\;\;\frac{\log \left(e^{{\left(\frac{i}{n} + 1\right)}^{n} - 1}\right)}{\frac{i}{n}} \cdot 100\\
\mathbf{if}\;\left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot e^{\log \left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right)}\right) \cdot \left(n \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \le -2.524949745714951 \cdot 10^{-223}:\\
\;\;\;\;\left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot n\right) \cdot \left(\left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \cdot {\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}}\right)\\
\mathbf{if}\;\left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot e^{\log \left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right)}\right) \cdot \left(n \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \le 2.1930611554132226 \cdot 10^{-256}:\\
\;\;\;\;\frac{\log \left(e^{{\left(\frac{i}{n} + 1\right)}^{n} - 1}\right)}{\frac{i}{n}} \cdot 100\\
\mathbf{if}\;\left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot e^{\log \left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right)}\right) \cdot \left(n \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \le 1.10824615154099 \cdot 10^{+31} \lor \left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot e^{\log \left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right)}\right) \cdot \left(n \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \le 1.4614977427470927 \cdot 10^{+286}:\\
\;\;\;\;\left({\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}} \cdot n\right) \cdot \left(\left(100 \cdot \sqrt[3]{1 + i \cdot \frac{1}{2}}\right) \cdot {\left(1 + i \cdot \frac{1}{2}\right)}^{\frac{1}{3}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{100 \cdot \left({\left(\frac{i}{n} + 1\right)}^{n} - 1\right)}{\frac{i}{n}}\\
\end{array}}\]