- Split input into 3 regimes
if F < -4.712640818345483e+37
Initial program 27.0
\[\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)}\]
Simplified27.0
\[\leadsto \color{blue}{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}}\]
Taylor expanded around -inf 0.2
\[\leadsto \color{blue}{\left(\frac{1}{{F}^{2} \cdot \sin B} - \frac{1}{\sin B}\right)} - \frac{x}{\tan B}\]
if -4.712640818345483e+37 < F < 2.8386726278963144e-05
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)}\]
Simplified0.4
\[\leadsto \color{blue}{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}}\]
- Using strategy
rm Applied add-sqr-sqrt0.4
\[\leadsto {\color{blue}{\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x} \cdot \sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}}^{\frac{-1}{2}} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
Applied unpow-prod-down0.4
\[\leadsto \color{blue}{\left({\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}^{\frac{-1}{2}} \cdot {\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}^{\frac{-1}{2}}\right)} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}\]
Applied associate-*l*0.5
\[\leadsto \color{blue}{{\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}^{\frac{-1}{2}} \cdot \left({\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B}\right)} - \frac{x}{\tan B}\]
- Using strategy
rm Applied add-sqr-sqrt0.5
\[\leadsto {\left(\sqrt{\color{blue}{\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x} \cdot \sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}}}\right)}^{\frac{-1}{2}} \cdot \left({\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B}\right) - \frac{x}{\tan B}\]
Applied sqrt-prod0.4
\[\leadsto {\color{blue}{\left(\sqrt{\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}} \cdot \sqrt{\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}}\right)}}^{\frac{-1}{2}} \cdot \left({\left(\sqrt{\left(2 + F \cdot F\right) + 2 \cdot x}\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B}\right) - \frac{x}{\tan B}\]
if 2.8386726278963144e-05 < F
Initial program 24.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)}\]
Simplified24.3
\[\leadsto \color{blue}{{\left(\left(2 + F \cdot F\right) + 2 \cdot x\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B} - \frac{x}{\tan B}}\]
Taylor expanded around inf 0.8
\[\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.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \le -4.712640818345483 \cdot 10^{+37}:\\
\;\;\;\;\left(\frac{1}{\sin B \cdot {F}^{2}} - \frac{1}{\sin B}\right) - \frac{x}{\tan B}\\
\mathbf{elif}\;F \le 2.8386726278963144 \cdot 10^{-05}:\\
\;\;\;\;\left({\left(\sqrt{2 \cdot x + \left(2 + F \cdot F\right)}\right)}^{\frac{-1}{2}} \cdot \frac{F}{\sin B}\right) \cdot {\left(\sqrt{\sqrt{2 \cdot x + \left(2 + F \cdot F\right)}} \cdot \sqrt{\sqrt{2 \cdot x + \left(2 + F \cdot F\right)}}\right)}^{\frac{-1}{2}} - \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}\]