- Split input into 3 regimes
if F < -9.352880665213902e+55
Initial program 29.6
\[\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\]
Taylor expanded around -inf 0.2
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\left(\frac{1}{{F}^{2} \cdot \sin B} - \frac{1}{\sin B}\right)}\]
Simplified0.2
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{\frac{1}{F \cdot F} - 1}{\sin B}}\]
if -9.352880665213902e+55 < F < 5.770972431265831e-09
Initial program 0.5
\[\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\]
- Using strategy
rm Applied pow-neg0.6
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot \color{blue}{\frac{1}{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}}\]
Applied un-div-inv0.5
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{\frac{F}{\sin B}}{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}}\]
Simplified0.5
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \frac{\frac{F}{\sin B}}{\color{blue}{{\left((x \cdot 2 + \left((F \cdot F + 2)_*\right))_*\right)}^{\left(\frac{1}{2}\right)}}}\]
if 5.770972431265831e-09 < F
Initial program 23.3
\[\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\]
- Using strategy
rm Applied pow-neg23.3
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot \color{blue}{\frac{1}{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}}\]
Applied frac-times18.7
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{F \cdot 1}{\sin B \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}}\]
Simplified18.7
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \frac{\color{blue}{F}}{\sin B \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}\]
Simplified18.7
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\color{blue}{{\left((x \cdot 2 + \left((F \cdot F + 2)_*\right))_*\right)}^{\left(\frac{1}{2}\right)} \cdot \sin B}}\]
- Using strategy
rm Applied un-div-inv18.6
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{F}{{\left((x \cdot 2 + \left((F \cdot F + 2)_*\right))_*\right)}^{\left(\frac{1}{2}\right)} \cdot \sin B}\]
Taylor expanded around inf 1.3
\[\leadsto \left(-\frac{x}{\tan B}\right) + \color{blue}{\left(\frac{1}{\sin B} - \frac{1}{{F}^{2} \cdot \sin B}\right)}\]
Simplified1.3
\[\leadsto \left(-\frac{x}{\tan B}\right) + \color{blue}{\frac{1 - \frac{\frac{1}{F}}{F}}{\sin B}}\]
- Recombined 3 regimes into one program.
Final simplification0.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \le -9.352880665213902 \cdot 10^{+55}:\\
\;\;\;\;\frac{1}{\tan B} \cdot \left(-x\right) + \frac{\frac{1}{F \cdot F} - 1}{\sin B}\\
\mathbf{elif}\;F \le 5.770972431265831 \cdot 10^{-09}:\\
\;\;\;\;\frac{\frac{F}{\sin B}}{{\left((x \cdot 2 + \left((F \cdot F + 2)_*\right))_*\right)}^{\left(\frac{1}{2}\right)}} + \frac{1}{\tan B} \cdot \left(-x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - \frac{\frac{1}{F}}{F}}{\sin B} + \frac{-x}{\tan B}\\
\end{array}\]