- Split input into 2 regimes
if y < 3.20334169337363e+40
Initial program 39.7
\[\Im(\left(\frac{e^{x} + e^{-x}}{2} \cdot \cos y + \frac{e^{x} - e^{-x}}{2} \cdot \sin y i\right))\]
Initial simplification39.7
\[\leadsto \frac{e^{x} \cdot \sin y - \frac{\sin y}{e^{x}}}{2}\]
Taylor expanded around 0 23.1
\[\leadsto \frac{\color{blue}{2 \cdot \left(x \cdot y\right)}}{2}\]
if 3.20334169337363e+40 < y
Initial program 57.9
\[\Im(\left(\frac{e^{x} + e^{-x}}{2} \cdot \cos y + \frac{e^{x} - e^{-x}}{2} \cdot \sin y i\right))\]
Initial simplification57.9
\[\leadsto \frac{e^{x} \cdot \sin y - \frac{\sin y}{e^{x}}}{2}\]
- Using strategy
rm Applied flip--58.0
\[\leadsto \frac{\color{blue}{\frac{\left(e^{x} \cdot \sin y\right) \cdot \left(e^{x} \cdot \sin y\right) - \frac{\sin y}{e^{x}} \cdot \frac{\sin y}{e^{x}}}{e^{x} \cdot \sin y + \frac{\sin y}{e^{x}}}}}{2}\]
- Recombined 2 regimes into one program.
Final simplification30.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \le 3.20334169337363 \cdot 10^{+40}:\\
\;\;\;\;\frac{2 \cdot \left(x \cdot y\right)}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\left(\sin y \cdot e^{x}\right) \cdot \left(\sin y \cdot e^{x}\right) - \frac{\sin y}{e^{x}} \cdot \frac{\sin y}{e^{x}}}{\frac{\sin y}{e^{x}} + \sin y \cdot e^{x}}}{2}\\
\end{array}\]