- Split input into 3 regimes
if F < -48941307.87049217
Initial program 25.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)}\]
Initial simplification25.5
\[\leadsto {\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
Taylor expanded around -inf 0.1
\[\leadsto \color{blue}{\left(\frac{1}{{F}^{2} \cdot \sin B} - \frac{1}{\sin B}\right)} - \frac{x}{\tan B}\]
if -48941307.87049217 < F < 2.0841371773587712e+17
Initial program 0.4
\[\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)}\]
Initial simplification0.3
\[\leadsto {\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
- Using strategy
rm Applied neg-sub00.3
\[\leadsto {\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\color{blue}{\left(0 - \frac{1}{2}\right)}} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
Applied pow-sub0.3
\[\leadsto \color{blue}{\frac{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{0}}{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
Applied associate-*l/0.3
\[\leadsto \color{blue}{\frac{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{0} \cdot \frac{F}{\sin B}}{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}} - \frac{x}{\tan B}\]
Simplified0.3
\[\leadsto \frac{\color{blue}{\frac{F}{\sin B}}}{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}} - \frac{x}{\tan B}\]
if 2.0841371773587712e+17 < F
Initial program 24.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)}\]
Initial simplification24.6
\[\leadsto {\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
Taylor expanded around inf 0.1
\[\leadsto \color{blue}{\left(\frac{1}{\sin B} - \frac{1}{{F}^{2} \cdot \sin B}\right)} - \frac{x}{\tan B}\]
- Recombined 3 regimes into one program.
Final simplification0.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \le -48941307.87049217:\\
\;\;\;\;\left(\frac{1}{\sin B \cdot {F}^{2}} - \frac{1}{\sin B}\right) - \frac{x}{\tan B}\\
\mathbf{elif}\;F \le 2.0841371773587712 \cdot 10^{+17}:\\
\;\;\;\;\frac{\frac{F}{\sin B}}{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{1}{\sin B} - \frac{1}{\sin B \cdot {F}^{2}}\right) - \frac{x}{\tan B}\\
\end{array}\]