VandenBroeck and Keller, Equation (23) Percentage Accurate: 76.6% → 99.6%
Time: 17.1s
Alternatives: 21
Speedup: TODO×
Specification ? \[\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)}
\]
Local Percentage Accuracy vs ?
The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples. Accuracy vs Speed? The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs. Alternative 1? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -9.5 \cdot 10^{+95}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 105000000:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -9.5000000000000004e95 Initial program 42.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)}
\]
Taylor expanded in F around -inf 99.8%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Step-by-step derivation div-inv99.9%
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{-1}{\sin B}
\]
clear-num99.9%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
Applied egg-rr 99.9%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
if -9.5000000000000004e95 < F < 1.05e8 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.6%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
if 1.05e8 < F Initial program 63.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)}
\]
Step-by-step derivation +-commutative63.6%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg63.6%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/75.2%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/75.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative75.2%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified75.3%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 75.2%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/75.3%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity75.3%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow275.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef75.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified75.3%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 99.8%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification99.8%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -9.5 \cdot 10^{+95}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 105000000:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 2? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1 \cdot 10^{+43}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 98000000:\\
\;\;\;\;F \cdot \frac{{\left(\mathsf{fma}\left(F, F, 2\right)\right)}^{-0.5}}{\sin B} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -1.00000000000000001e43 Initial program 53.1%
\[\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 in F around -inf 99.8%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Step-by-step derivation div-inv99.8%
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{-1}{\sin B}
\]
clear-num99.9%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
Applied egg-rr 99.9%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
if -1.00000000000000001e43 < F < 9.8e7 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.7%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in B around inf 99.7%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow1/299.7%
\[\leadsto F \cdot \frac{\color{blue}{{\left(\frac{1}{\mathsf{fma}\left(F, F, 2\right)}\right)}^{0.5}}}{\sin B} - \frac{x}{\tan B}
\]
rem-exp-log99.6%
\[\leadsto F \cdot \frac{{\left(\frac{1}{\color{blue}{e^{\log \left(\mathsf{fma}\left(F, F, 2\right)\right)}}}\right)}^{0.5}}{\sin B} - \frac{x}{\tan B}
\]
exp-neg99.6%
\[\leadsto F \cdot \frac{{\color{blue}{\left(e^{-\log \left(\mathsf{fma}\left(F, F, 2\right)\right)}\right)}}^{0.5}}{\sin B} - \frac{x}{\tan B}
\]
exp-prod99.6%
\[\leadsto F \cdot \frac{\color{blue}{e^{\left(-\log \left(\mathsf{fma}\left(F, F, 2\right)\right)\right) \cdot 0.5}}}{\sin B} - \frac{x}{\tan B}
\]
*-commutative99.6%
\[\leadsto F \cdot \frac{e^{\color{blue}{0.5 \cdot \left(-\log \left(\mathsf{fma}\left(F, F, 2\right)\right)\right)}}}{\sin B} - \frac{x}{\tan B}
\]
neg-mul-199.6%
\[\leadsto F \cdot \frac{e^{0.5 \cdot \color{blue}{\left(-1 \cdot \log \left(\mathsf{fma}\left(F, F, 2\right)\right)\right)}}}{\sin B} - \frac{x}{\tan B}
\]
associate-*r*99.6%
\[\leadsto F \cdot \frac{e^{\color{blue}{\left(0.5 \cdot -1\right) \cdot \log \left(\mathsf{fma}\left(F, F, 2\right)\right)}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval99.6%
\[\leadsto F \cdot \frac{e^{\color{blue}{-0.5} \cdot \log \left(\mathsf{fma}\left(F, F, 2\right)\right)}}{\sin B} - \frac{x}{\tan B}
\]
log-pow99.6%
\[\leadsto F \cdot \frac{e^{\color{blue}{\log \left({\left(\mathsf{fma}\left(F, F, 2\right)\right)}^{-0.5}\right)}}}{\sin B} - \frac{x}{\tan B}
\]
rem-exp-log99.7%
\[\leadsto F \cdot \frac{\color{blue}{{\left(\mathsf{fma}\left(F, F, 2\right)\right)}^{-0.5}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{{\left(\mathsf{fma}\left(F, F, 2\right)\right)}^{-0.5}}{\sin B}} - \frac{x}{\tan B}
\]
if 9.8e7 < F Initial program 63.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)}
\]
Step-by-step derivation +-commutative63.6%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg63.6%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/75.2%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/75.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative75.2%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified75.3%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 75.2%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/75.3%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity75.3%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow275.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef75.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified75.3%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 99.8%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification99.8%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -1 \cdot 10^{+43}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 98000000:\\
\;\;\;\;F \cdot \frac{{\left(\mathsf{fma}\left(F, F, 2\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 3? \[\begin{array}{l}
\mathbf{if}\;F \leq -215000000:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 118000000:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -2.15e8 Initial program 55.8%
\[\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 in F around -inf 99.7%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Step-by-step derivation div-inv99.8%
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{-1}{\sin B}
\]
clear-num99.8%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
Applied egg-rr 99.8%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
if -2.15e8 < F < 1.18e8 Initial program 99.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)}
\]
if 1.18e8 < F Initial program 63.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)}
\]
Step-by-step derivation +-commutative63.6%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg63.6%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/75.2%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/75.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative75.2%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified75.3%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 75.2%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/75.3%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity75.3%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow275.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef75.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified75.3%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 99.8%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification99.7%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -215000000:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 118000000:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 4? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -0.9:\\
\;\;\;\;F \cdot \frac{\frac{1}{\frac{-1}{F} - F}}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 3.7 \cdot 10^{-13}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{\sin B} - t_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -0.900000000000000022 Initial program 57.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)}
\]
Step-by-step derivation +-commutative57.0%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg57.0%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/67.3%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/67.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative67.2%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified67.3%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 67.3%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/67.3%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity67.3%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow267.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef67.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified67.3%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div67.3%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval67.3%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 67.3%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around -inf 99.3%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{-1 \cdot F - \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Step-by-step derivation mul-1-neg99.3%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{\left(-F\right)} - \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.3%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{\left(-F\right) - \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
if -0.900000000000000022 < F < 3.69999999999999989e-13 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.6%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around 0 99.3%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{0.5}}}{\sin B} - \frac{x}{\tan B}
\]
if 3.69999999999999989e-13 < F Initial program 65.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)}
\]
Step-by-step derivation +-commutative65.0%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg65.0%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/76.2%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/76.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative76.2%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified76.3%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 76.2%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/76.3%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity76.3%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow276.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef76.3%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified76.3%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div76.3%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval76.3%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 76.3%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 99.6%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{F + \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification99.4%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -0.9:\\
\;\;\;\;F \cdot \frac{\frac{1}{\frac{-1}{F} - F}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 3.7 \cdot 10^{-13}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 5? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -215000000:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq -9.4 \cdot 10^{-63}:\\
\;\;\;\;\frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \left(\sqrt{\frac{1}{2 + x \cdot 2}} \cdot \frac{1}{B}\right) - t_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 4 regimes if F < -2.15e8 Initial program 55.8%
\[\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 in F around -inf 99.7%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Step-by-step derivation div-inv99.8%
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{-1}{\sin B}
\]
clear-num99.8%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
Applied egg-rr 99.8%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
if -2.15e8 < F < -9.4000000000000001e-63 Initial program 99.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)}
\]
Taylor expanded in B around 0 99.4%
\[\leadsto \left(-\color{blue}{\frac{x}{B}}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}
\]
if -9.4000000000000001e-63 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 83.7%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval77.2%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.4%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{F + \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Recombined 4 regimes into one program. Final simplification93.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -215000000:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq -9.4 \cdot 10^{-63}:\\
\;\;\;\;\frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \left(\sqrt{\frac{1}{2 + x \cdot 2}} \cdot \frac{1}{B}\right) - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 6? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;F \cdot \frac{\frac{1}{\frac{-1}{F} - F}}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \left(\sqrt{\frac{1}{2 + x \cdot 2}} \cdot \frac{1}{B}\right) - t_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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)}
\]
Step-by-step derivation +-commutative58.7%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg58.7%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/68.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/68.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative68.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified68.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 68.5%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/68.6%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity68.6%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow268.6%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef68.6%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified68.6%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div68.5%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval68.5%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 68.5%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around -inf 95.7%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{-1 \cdot F - \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Step-by-step derivation mul-1-neg95.7%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{\left(-F\right)} - \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified95.7%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{\left(-F\right) - \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
if -2.4000000000000001e-26 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 83.2%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval77.2%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.4%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{F + \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification91.4%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;F \cdot \frac{\frac{1}{\frac{-1}{F} - F}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \left(\sqrt{\frac{1}{2 + x \cdot 2}} \cdot \frac{1}{B}\right) - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 7? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - t_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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 in F around -inf 95.5%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Step-by-step derivation div-inv95.6%
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{-1}{\sin B}
\]
clear-num95.6%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
Applied egg-rr 95.6%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
if -2.4000000000000001e-26 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 83.2%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
Taylor expanded in x around 0 83.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{0.5}}{B}} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval77.2%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.4%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{F + \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification91.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 8? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;F \cdot \frac{\frac{1}{\frac{-1}{F} - F}}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - t_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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)}
\]
Step-by-step derivation +-commutative58.7%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg58.7%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/68.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/68.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative68.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified68.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 68.5%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/68.6%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity68.6%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow268.6%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef68.6%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified68.6%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div68.5%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval68.5%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 68.5%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around -inf 95.7%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{-1 \cdot F - \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Step-by-step derivation mul-1-neg95.7%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{\left(-F\right)} - \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified95.7%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{\left(-F\right) - \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
if -2.4000000000000001e-26 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 83.2%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
Taylor expanded in x around 0 83.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{0.5}}{B}} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation sqrt-div77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
metadata-eval77.2%
\[\leadsto F \cdot \frac{\frac{\color{blue}{1}}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - \frac{x}{\tan B}
\]
Applied egg-rr 77.2%
\[\leadsto F \cdot \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.4%
\[\leadsto F \cdot \frac{\frac{1}{\color{blue}{F + \frac{1}{F}}}}{\sin B} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification91.4%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;F \cdot \frac{\frac{1}{\frac{-1}{F} - F}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F + \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 9? \[\begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq -8 \cdot 10^{-115}:\\
\;\;\;\;\sqrt{0.5} \cdot \frac{F}{B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 5 \cdot 10^{-85}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Derivation Split input into 4 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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 in F around -inf 95.5%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 75.6%
\[\leadsto \left(-\color{blue}{\frac{x}{B}}\right) + \frac{-1}{\sin B}
\]
if -2.4000000000000001e-26 < F < -8.0000000000000004e-115 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.6%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.6%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around 0 99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-/l*99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Simplified99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 75.8%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F - x}{B}}
\]
Taylor expanded in F around 0 75.9%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{B} + -1 \cdot \frac{x}{B}}
\]
Step-by-step derivation *-commutative75.9%
\[\leadsto \frac{\color{blue}{F \cdot \sqrt{0.5}}}{B} + -1 \cdot \frac{x}{B}
\]
mul-1-neg75.9%
\[\leadsto \frac{F \cdot \sqrt{0.5}}{B} + \color{blue}{\left(-\frac{x}{B}\right)}
\]
sub-neg75.9%
\[\leadsto \color{blue}{\frac{F \cdot \sqrt{0.5}}{B} - \frac{x}{B}}
\]
associate-/l*75.8%
\[\leadsto \color{blue}{\frac{F}{\frac{B}{\sqrt{0.5}}}} - \frac{x}{B}
\]
associate-/r/75.9%
\[\leadsto \color{blue}{\frac{F}{B} \cdot \sqrt{0.5}} - \frac{x}{B}
\]
Simplified75.9%
\[\leadsto \color{blue}{\frac{F}{B} \cdot \sqrt{0.5} - \frac{x}{B}}
\]
if -8.0000000000000004e-115 < F < 5.0000000000000002e-85 Initial program 99.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)}
\]
Taylor expanded in F around -inf 28.2%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in x around inf 76.4%
\[\leadsto \color{blue}{-1 \cdot \frac{\cos B \cdot x}{\sin B}}
\]
Step-by-step derivation mul-1-neg76.4%
\[\leadsto \color{blue}{-\frac{\cos B \cdot x}{\sin B}}
\]
associate-/l*76.3%
\[\leadsto -\color{blue}{\frac{\cos B}{\frac{\sin B}{x}}}
\]
associate-/r/76.2%
\[\leadsto -\color{blue}{\frac{\cos B}{\sin B} \cdot x}
\]
distribute-rgt-neg-in76.2%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Simplified76.2%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Step-by-step derivation add-log-exp8.0%
\[\leadsto \color{blue}{\log \left(e^{\frac{\cos B}{\sin B} \cdot \left(-x\right)}\right)}
\]
distribute-rgt-neg-out8.0%
\[\leadsto \log \left(e^{\color{blue}{-\frac{\cos B}{\sin B} \cdot x}}\right)
\]
exp-neg8.0%
\[\leadsto \log \color{blue}{\left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot x}}\right)}
\]
add-sqr-sqrt6.1%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}}\right)
\]
sqrt-unprod7.6%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\sqrt{x \cdot x}}}}\right)
\]
sqr-neg7.6%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \sqrt{\color{blue}{\left(-x\right) \cdot \left(-x\right)}}}}\right)
\]
sqrt-unprod1.4%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{-x} \cdot \sqrt{-x}\right)}}}\right)
\]
add-sqr-sqrt2.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(-x\right)}}}\right)
\]
*-commutative2.5%
\[\leadsto \log \left(\frac{1}{e^{\color{blue}{\left(-x\right) \cdot \frac{\cos B}{\sin B}}}}\right)
\]
exp-prod2.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{{\left(e^{-x}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}}\right)
\]
add-sqr-sqrt1.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{-x} \cdot \sqrt{-x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod7.8%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{\left(-x\right) \cdot \left(-x\right)}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqr-neg7.8%
\[\leadsto \log \left(\frac{1}{{\left(e^{\sqrt{\color{blue}{x \cdot x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod6.2%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{x} \cdot \sqrt{x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
add-sqr-sqrt7.8%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{x}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
exp-prod8.0%
\[\leadsto \log \left(\frac{1}{\color{blue}{e^{x \cdot \frac{\cos B}{\sin B}}}}\right)
\]
clear-num8.0%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \color{blue}{\frac{1}{\frac{\sin B}{\cos B}}}}}\right)
\]
tan-quot8.0%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \frac{1}{\color{blue}{\tan B}}}}\right)
\]
Applied egg-rr 76.6%
\[\leadsto \color{blue}{-\frac{x}{\tan B}}
\]
Step-by-step derivation distribute-neg-frac76.6%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Simplified76.6%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
if 5.0000000000000002e-85 < F Initial program 70.1%
\[\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)}
\]
Step-by-step derivation +-commutative70.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg70.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/79.6%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/79.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative79.6%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified79.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 79.6%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/79.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity79.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow279.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef79.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified79.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 90.9%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 4 regimes into one program. Final simplification81.1%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq -8 \cdot 10^{-115}:\\
\;\;\;\;\sqrt{0.5} \cdot \frac{F}{B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 5 \cdot 10^{-85}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 10? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -102000000000:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -1.02e11 Initial program 55.1%
\[\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 in F around -inf 99.7%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 79.6%
\[\leadsto \left(-\color{blue}{\frac{x}{B}}\right) + \frac{-1}{\sin B}
\]
if -1.02e11 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 98.5%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 80.7%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
Taylor expanded in x around 0 80.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{0.5}}{B}} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.2%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification85.7%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -102000000000:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 11? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} + x \cdot \frac{-1}{\tan B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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 in F around -inf 95.5%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
if -2.4000000000000001e-26 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 83.2%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
Taylor expanded in x around 0 83.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{0.5}}{B}} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.2%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification91.2%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} + x \cdot \frac{-1}{\tan B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 12? \[\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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 in F around -inf 95.5%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Step-by-step derivation div-inv95.6%
\[\leadsto \left(-\color{blue}{\frac{x}{\tan B}}\right) + \frac{-1}{\sin B}
\]
clear-num95.6%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
Applied egg-rr 95.6%
\[\leadsto \left(-\color{blue}{\frac{1}{\frac{\tan B}{x}}}\right) + \frac{-1}{\sin B}
\]
if -2.4000000000000001e-26 < F < 1.54999999999999995e-30 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.5%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.5%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.5%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around 0 99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{2 + 2 \cdot x}}}}{\sin B} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 83.2%
\[\leadsto F \cdot \color{blue}{\left(\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot \frac{1}{B}\right)} - \frac{x}{\tan B}
\]
Taylor expanded in x around 0 83.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{0.5}}{B}} - \frac{x}{\tan B}
\]
if 1.54999999999999995e-30 < F Initial program 66.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)}
\]
Step-by-step derivation +-commutative66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg66.4%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/77.1%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/77.1%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative77.1%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified77.2%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 77.1%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/77.2%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity77.2%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow277.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef77.2%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified77.2%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around inf 98.2%
\[\leadsto \color{blue}{\frac{1}{\sin B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification91.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-30}:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 13? \[\begin{array}{l}
\mathbf{if}\;F \leq -0.00105:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq -3.8 \cdot 10^{-115}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5} - x}{B}\\
\mathbf{elif}\;F \leq 2.4 \cdot 10^{-71}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Derivation Split input into 4 regimes if F < -0.00104999999999999994 Initial program 57.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 in F around -inf 97.9%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 49.6%
\[\leadsto \color{blue}{\left(0.3333333333333333 \cdot x - 0.16666666666666666\right) \cdot B + -1 \cdot \frac{1 + x}{B}}
\]
if -0.00104999999999999994 < F < -3.79999999999999992e-115 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.3%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.6%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.5%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around 0 99.4%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-/l*99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Simplified99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 68.1%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F - x}{B}}
\]
if -3.79999999999999992e-115 < F < 2.4e-71 Initial program 99.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)}
\]
Taylor expanded in F around -inf 28.4%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in x around inf 75.0%
\[\leadsto \color{blue}{-1 \cdot \frac{\cos B \cdot x}{\sin B}}
\]
Step-by-step derivation mul-1-neg75.0%
\[\leadsto \color{blue}{-\frac{\cos B \cdot x}{\sin B}}
\]
associate-/l*74.8%
\[\leadsto -\color{blue}{\frac{\cos B}{\frac{\sin B}{x}}}
\]
associate-/r/74.8%
\[\leadsto -\color{blue}{\frac{\cos B}{\sin B} \cdot x}
\]
distribute-rgt-neg-in74.8%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Simplified74.8%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Step-by-step derivation add-log-exp7.8%
\[\leadsto \color{blue}{\log \left(e^{\frac{\cos B}{\sin B} \cdot \left(-x\right)}\right)}
\]
distribute-rgt-neg-out7.8%
\[\leadsto \log \left(e^{\color{blue}{-\frac{\cos B}{\sin B} \cdot x}}\right)
\]
exp-neg7.8%
\[\leadsto \log \color{blue}{\left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot x}}\right)}
\]
add-sqr-sqrt6.0%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}}\right)
\]
sqrt-unprod7.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\sqrt{x \cdot x}}}}\right)
\]
sqr-neg7.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \sqrt{\color{blue}{\left(-x\right) \cdot \left(-x\right)}}}}\right)
\]
sqrt-unprod1.4%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{-x} \cdot \sqrt{-x}\right)}}}\right)
\]
add-sqr-sqrt2.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(-x\right)}}}\right)
\]
*-commutative2.5%
\[\leadsto \log \left(\frac{1}{e^{\color{blue}{\left(-x\right) \cdot \frac{\cos B}{\sin B}}}}\right)
\]
exp-prod2.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{{\left(e^{-x}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}}\right)
\]
add-sqr-sqrt1.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{-x} \cdot \sqrt{-x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod7.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{\left(-x\right) \cdot \left(-x\right)}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqr-neg7.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\sqrt{\color{blue}{x \cdot x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod6.0%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{x} \cdot \sqrt{x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
add-sqr-sqrt7.7%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{x}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
exp-prod7.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{e^{x \cdot \frac{\cos B}{\sin B}}}}\right)
\]
clear-num7.8%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \color{blue}{\frac{1}{\frac{\sin B}{\cos B}}}}}\right)
\]
tan-quot7.8%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \frac{1}{\color{blue}{\tan B}}}}\right)
\]
Applied egg-rr 75.2%
\[\leadsto \color{blue}{-\frac{x}{\tan B}}
\]
Step-by-step derivation distribute-neg-frac75.2%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Simplified75.2%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
if 2.4e-71 < F Initial program 69.1%
\[\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)}
\]
Step-by-step derivation +-commutative69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/78.9%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/78.9%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative78.9%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified79.0%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around inf 92.5%
\[\leadsto F \cdot \color{blue}{\frac{1}{\sin B \cdot F}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 71.2%
\[\leadsto \color{blue}{\frac{1}{B}} - \frac{x}{\tan B}
\]
Recombined 4 regimes into one program. Final simplification66.2%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -0.00105:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq -3.8 \cdot 10^{-115}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5} - x}{B}\\
\mathbf{elif}\;F \leq 2.4 \cdot 10^{-71}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 14? \[\begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq -6.7 \cdot 10^{-115}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5} - x}{B}\\
\mathbf{elif}\;F \leq 1.06 \cdot 10^{-75}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Derivation Split input into 4 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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 in F around -inf 95.5%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 75.6%
\[\leadsto \left(-\color{blue}{\frac{x}{B}}\right) + \frac{-1}{\sin B}
\]
if -2.4000000000000001e-26 < F < -6.7000000000000002e-115 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.6%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.6%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around 0 99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-/l*99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Simplified99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 75.8%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F - x}{B}}
\]
if -6.7000000000000002e-115 < F < 1.06e-75 Initial program 99.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)}
\]
Taylor expanded in F around -inf 28.4%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in x around inf 75.0%
\[\leadsto \color{blue}{-1 \cdot \frac{\cos B \cdot x}{\sin B}}
\]
Step-by-step derivation mul-1-neg75.0%
\[\leadsto \color{blue}{-\frac{\cos B \cdot x}{\sin B}}
\]
associate-/l*74.8%
\[\leadsto -\color{blue}{\frac{\cos B}{\frac{\sin B}{x}}}
\]
associate-/r/74.8%
\[\leadsto -\color{blue}{\frac{\cos B}{\sin B} \cdot x}
\]
distribute-rgt-neg-in74.8%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Simplified74.8%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Step-by-step derivation add-log-exp7.8%
\[\leadsto \color{blue}{\log \left(e^{\frac{\cos B}{\sin B} \cdot \left(-x\right)}\right)}
\]
distribute-rgt-neg-out7.8%
\[\leadsto \log \left(e^{\color{blue}{-\frac{\cos B}{\sin B} \cdot x}}\right)
\]
exp-neg7.8%
\[\leadsto \log \color{blue}{\left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot x}}\right)}
\]
add-sqr-sqrt6.0%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}}\right)
\]
sqrt-unprod7.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\sqrt{x \cdot x}}}}\right)
\]
sqr-neg7.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \sqrt{\color{blue}{\left(-x\right) \cdot \left(-x\right)}}}}\right)
\]
sqrt-unprod1.4%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{-x} \cdot \sqrt{-x}\right)}}}\right)
\]
add-sqr-sqrt2.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(-x\right)}}}\right)
\]
*-commutative2.5%
\[\leadsto \log \left(\frac{1}{e^{\color{blue}{\left(-x\right) \cdot \frac{\cos B}{\sin B}}}}\right)
\]
exp-prod2.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{{\left(e^{-x}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}}\right)
\]
add-sqr-sqrt1.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{-x} \cdot \sqrt{-x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod7.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{\left(-x\right) \cdot \left(-x\right)}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqr-neg7.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\sqrt{\color{blue}{x \cdot x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod6.0%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{x} \cdot \sqrt{x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
add-sqr-sqrt7.7%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{x}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
exp-prod7.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{e^{x \cdot \frac{\cos B}{\sin B}}}}\right)
\]
clear-num7.8%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \color{blue}{\frac{1}{\frac{\sin B}{\cos B}}}}}\right)
\]
tan-quot7.8%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \frac{1}{\color{blue}{\tan B}}}}\right)
\]
Applied egg-rr 75.2%
\[\leadsto \color{blue}{-\frac{x}{\tan B}}
\]
Step-by-step derivation distribute-neg-frac75.2%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Simplified75.2%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
if 1.06e-75 < F Initial program 69.1%
\[\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)}
\]
Step-by-step derivation +-commutative69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/78.9%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/78.9%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative78.9%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified79.0%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around inf 92.5%
\[\leadsto F \cdot \color{blue}{\frac{1}{\sin B \cdot F}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 71.2%
\[\leadsto \color{blue}{\frac{1}{B}} - \frac{x}{\tan B}
\]
Recombined 4 regimes into one program. Final simplification74.0%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq -6.7 \cdot 10^{-115}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5} - x}{B}\\
\mathbf{elif}\;F \leq 1.06 \cdot 10^{-75}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 15? \[\begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq -1 \cdot 10^{-114}:\\
\;\;\;\;\sqrt{0.5} \cdot \frac{F}{B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 2.8 \cdot 10^{-71}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Derivation Split input into 4 regimes if F < -2.4000000000000001e-26 Initial program 58.7%
\[\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 in F around -inf 95.5%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 75.6%
\[\leadsto \left(-\color{blue}{\frac{x}{B}}\right) + \frac{-1}{\sin B}
\]
if -2.4000000000000001e-26 < F < -1.0000000000000001e-114 Initial program 99.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)}
\]
Step-by-step derivation +-commutative99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg99.5%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/99.4%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/99.6%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative99.6%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified99.7%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in x around 0 99.6%
\[\leadsto F \cdot \color{blue}{\left(\frac{1}{\sin B} \cdot \sqrt{\frac{1}{{F}^{2} + 2}}\right)} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-*l/99.7%
\[\leadsto F \cdot \color{blue}{\frac{1 \cdot \sqrt{\frac{1}{{F}^{2} + 2}}}{\sin B}} - \frac{x}{\tan B}
\]
*-lft-identity99.7%
\[\leadsto F \cdot \frac{\color{blue}{\sqrt{\frac{1}{{F}^{2} + 2}}}}{\sin B} - \frac{x}{\tan B}
\]
unpow299.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{F \cdot F} + 2}}}{\sin B} - \frac{x}{\tan B}
\]
fma-udef99.7%
\[\leadsto F \cdot \frac{\sqrt{\frac{1}{\color{blue}{\mathsf{fma}\left(F, F, 2\right)}}}}{\sin B} - \frac{x}{\tan B}
\]
Simplified99.7%
\[\leadsto F \cdot \color{blue}{\frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B}} - \frac{x}{\tan B}
\]
Taylor expanded in F around 0 99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{\sin B}} - \frac{x}{\tan B}
\]
Step-by-step derivation associate-/l*99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Simplified99.5%
\[\leadsto \color{blue}{\frac{\sqrt{0.5}}{\frac{\sin B}{F}}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 75.8%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F - x}{B}}
\]
Taylor expanded in F around 0 75.9%
\[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{B} + -1 \cdot \frac{x}{B}}
\]
Step-by-step derivation *-commutative75.9%
\[\leadsto \frac{\color{blue}{F \cdot \sqrt{0.5}}}{B} + -1 \cdot \frac{x}{B}
\]
mul-1-neg75.9%
\[\leadsto \frac{F \cdot \sqrt{0.5}}{B} + \color{blue}{\left(-\frac{x}{B}\right)}
\]
sub-neg75.9%
\[\leadsto \color{blue}{\frac{F \cdot \sqrt{0.5}}{B} - \frac{x}{B}}
\]
associate-/l*75.8%
\[\leadsto \color{blue}{\frac{F}{\frac{B}{\sqrt{0.5}}}} - \frac{x}{B}
\]
associate-/r/75.9%
\[\leadsto \color{blue}{\frac{F}{B} \cdot \sqrt{0.5}} - \frac{x}{B}
\]
Simplified75.9%
\[\leadsto \color{blue}{\frac{F}{B} \cdot \sqrt{0.5} - \frac{x}{B}}
\]
if -1.0000000000000001e-114 < F < 2.8e-71 Initial program 99.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)}
\]
Taylor expanded in F around -inf 28.4%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in x around inf 75.0%
\[\leadsto \color{blue}{-1 \cdot \frac{\cos B \cdot x}{\sin B}}
\]
Step-by-step derivation mul-1-neg75.0%
\[\leadsto \color{blue}{-\frac{\cos B \cdot x}{\sin B}}
\]
associate-/l*74.8%
\[\leadsto -\color{blue}{\frac{\cos B}{\frac{\sin B}{x}}}
\]
associate-/r/74.8%
\[\leadsto -\color{blue}{\frac{\cos B}{\sin B} \cdot x}
\]
distribute-rgt-neg-in74.8%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Simplified74.8%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Step-by-step derivation add-log-exp7.8%
\[\leadsto \color{blue}{\log \left(e^{\frac{\cos B}{\sin B} \cdot \left(-x\right)}\right)}
\]
distribute-rgt-neg-out7.8%
\[\leadsto \log \left(e^{\color{blue}{-\frac{\cos B}{\sin B} \cdot x}}\right)
\]
exp-neg7.8%
\[\leadsto \log \color{blue}{\left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot x}}\right)}
\]
add-sqr-sqrt6.0%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}}\right)
\]
sqrt-unprod7.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\sqrt{x \cdot x}}}}\right)
\]
sqr-neg7.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \sqrt{\color{blue}{\left(-x\right) \cdot \left(-x\right)}}}}\right)
\]
sqrt-unprod1.4%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{-x} \cdot \sqrt{-x}\right)}}}\right)
\]
add-sqr-sqrt2.5%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(-x\right)}}}\right)
\]
*-commutative2.5%
\[\leadsto \log \left(\frac{1}{e^{\color{blue}{\left(-x\right) \cdot \frac{\cos B}{\sin B}}}}\right)
\]
exp-prod2.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{{\left(e^{-x}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}}\right)
\]
add-sqr-sqrt1.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{-x} \cdot \sqrt{-x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod7.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{\left(-x\right) \cdot \left(-x\right)}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqr-neg7.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\sqrt{\color{blue}{x \cdot x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod6.0%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{x} \cdot \sqrt{x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
add-sqr-sqrt7.7%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{x}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
exp-prod7.8%
\[\leadsto \log \left(\frac{1}{\color{blue}{e^{x \cdot \frac{\cos B}{\sin B}}}}\right)
\]
clear-num7.8%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \color{blue}{\frac{1}{\frac{\sin B}{\cos B}}}}}\right)
\]
tan-quot7.8%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \frac{1}{\color{blue}{\tan B}}}}\right)
\]
Applied egg-rr 75.2%
\[\leadsto \color{blue}{-\frac{x}{\tan B}}
\]
Step-by-step derivation distribute-neg-frac75.2%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Simplified75.2%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
if 2.8e-71 < F Initial program 69.1%
\[\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)}
\]
Step-by-step derivation +-commutative69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/78.9%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/78.9%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative78.9%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified79.0%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around inf 92.5%
\[\leadsto F \cdot \color{blue}{\frac{1}{\sin B \cdot F}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 71.2%
\[\leadsto \color{blue}{\frac{1}{B}} - \frac{x}{\tan B}
\]
Recombined 4 regimes into one program. Final simplification74.0%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq -1 \cdot 10^{-114}:\\
\;\;\;\;\sqrt{0.5} \cdot \frac{F}{B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 2.8 \cdot 10^{-71}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 16? \[\begin{array}{l}
\mathbf{if}\;F \leq -1.28 \cdot 10^{+113}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.45 \cdot 10^{-75}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Derivation Split input into 3 regimes if F < -1.27999999999999994e113 Initial program 39.1%
\[\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 in F around -inf 99.8%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 55.3%
\[\leadsto \color{blue}{\left(0.3333333333333333 \cdot x - 0.16666666666666666\right) \cdot B + -1 \cdot \frac{1 + x}{B}}
\]
if -1.27999999999999994e113 < F < 1.4500000000000001e-75 Initial program 99.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)}
\]
Taylor expanded in F around -inf 40.9%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in x around inf 63.5%
\[\leadsto \color{blue}{-1 \cdot \frac{\cos B \cdot x}{\sin B}}
\]
Step-by-step derivation mul-1-neg63.5%
\[\leadsto \color{blue}{-\frac{\cos B \cdot x}{\sin B}}
\]
associate-/l*63.4%
\[\leadsto -\color{blue}{\frac{\cos B}{\frac{\sin B}{x}}}
\]
associate-/r/63.4%
\[\leadsto -\color{blue}{\frac{\cos B}{\sin B} \cdot x}
\]
distribute-rgt-neg-in63.4%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Simplified63.4%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Step-by-step derivation add-log-exp8.3%
\[\leadsto \color{blue}{\log \left(e^{\frac{\cos B}{\sin B} \cdot \left(-x\right)}\right)}
\]
distribute-rgt-neg-out8.3%
\[\leadsto \log \left(e^{\color{blue}{-\frac{\cos B}{\sin B} \cdot x}}\right)
\]
exp-neg8.3%
\[\leadsto \log \color{blue}{\left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot x}}\right)}
\]
add-sqr-sqrt6.7%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}}\right)
\]
sqrt-unprod8.1%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\sqrt{x \cdot x}}}}\right)
\]
sqr-neg8.1%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \sqrt{\color{blue}{\left(-x\right) \cdot \left(-x\right)}}}}\right)
\]
sqrt-unprod1.3%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{-x} \cdot \sqrt{-x}\right)}}}\right)
\]
add-sqr-sqrt2.3%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(-x\right)}}}\right)
\]
*-commutative2.3%
\[\leadsto \log \left(\frac{1}{e^{\color{blue}{\left(-x\right) \cdot \frac{\cos B}{\sin B}}}}\right)
\]
exp-prod2.5%
\[\leadsto \log \left(\frac{1}{\color{blue}{{\left(e^{-x}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}}\right)
\]
add-sqr-sqrt1.4%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{-x} \cdot \sqrt{-x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod8.0%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{\left(-x\right) \cdot \left(-x\right)}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqr-neg8.0%
\[\leadsto \log \left(\frac{1}{{\left(e^{\sqrt{\color{blue}{x \cdot x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod6.6%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{x} \cdot \sqrt{x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
add-sqr-sqrt8.2%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{x}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
exp-prod8.3%
\[\leadsto \log \left(\frac{1}{\color{blue}{e^{x \cdot \frac{\cos B}{\sin B}}}}\right)
\]
clear-num8.3%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \color{blue}{\frac{1}{\frac{\sin B}{\cos B}}}}}\right)
\]
tan-quot8.3%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \frac{1}{\color{blue}{\tan B}}}}\right)
\]
Applied egg-rr 63.7%
\[\leadsto \color{blue}{-\frac{x}{\tan B}}
\]
Step-by-step derivation distribute-neg-frac63.7%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Simplified63.7%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
if 1.4500000000000001e-75 < F Initial program 69.1%
\[\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)}
\]
Step-by-step derivation +-commutative69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)}
\]
unsub-neg69.1%
\[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} - x \cdot \frac{1}{\tan B}}
\]
associate-*l/78.9%
\[\leadsto \color{blue}{\frac{F \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
associate-*r/78.9%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B}} - x \cdot \frac{1}{\tan B}
\]
*-commutative78.9%
\[\leadsto \color{blue}{\frac{{\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}}{\sin B} \cdot F} - x \cdot \frac{1}{\tan B}
\]
Simplified79.0%
\[\leadsto \color{blue}{F \cdot \frac{{\left(\mathsf{fma}\left(x, 2, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\sin B} - \frac{x}{\tan B}}
\]
Taylor expanded in F around inf 92.5%
\[\leadsto F \cdot \color{blue}{\frac{1}{\sin B \cdot F}} - \frac{x}{\tan B}
\]
Taylor expanded in B around 0 71.2%
\[\leadsto \color{blue}{\frac{1}{B}} - \frac{x}{\tan B}
\]
Recombined 3 regimes into one program. Final simplification64.5%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -1.28 \cdot 10^{+113}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.45 \cdot 10^{-75}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\]
Alternative 17? \[\begin{array}{l}
\mathbf{if}\;F \leq -1.35 \cdot 10^{+112}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\end{array}
\]
Derivation Split input into 2 regimes if F < -1.3500000000000001e112 Initial program 39.1%
\[\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 in F around -inf 99.8%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 55.3%
\[\leadsto \color{blue}{\left(0.3333333333333333 \cdot x - 0.16666666666666666\right) \cdot B + -1 \cdot \frac{1 + x}{B}}
\]
if -1.3500000000000001e112 < F Initial program 87.1%
\[\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 in F around -inf 42.8%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in x around inf 56.8%
\[\leadsto \color{blue}{-1 \cdot \frac{\cos B \cdot x}{\sin B}}
\]
Step-by-step derivation mul-1-neg56.8%
\[\leadsto \color{blue}{-\frac{\cos B \cdot x}{\sin B}}
\]
associate-/l*56.7%
\[\leadsto -\color{blue}{\frac{\cos B}{\frac{\sin B}{x}}}
\]
associate-/r/56.7%
\[\leadsto -\color{blue}{\frac{\cos B}{\sin B} \cdot x}
\]
distribute-rgt-neg-in56.7%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Simplified56.7%
\[\leadsto \color{blue}{\frac{\cos B}{\sin B} \cdot \left(-x\right)}
\]
Step-by-step derivation add-log-exp10.0%
\[\leadsto \color{blue}{\log \left(e^{\frac{\cos B}{\sin B} \cdot \left(-x\right)}\right)}
\]
distribute-rgt-neg-out10.0%
\[\leadsto \log \left(e^{\color{blue}{-\frac{\cos B}{\sin B} \cdot x}}\right)
\]
exp-neg10.0%
\[\leadsto \log \color{blue}{\left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot x}}\right)}
\]
add-sqr-sqrt7.7%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{x} \cdot \sqrt{x}\right)}}}\right)
\]
sqrt-unprod8.8%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\sqrt{x \cdot x}}}}\right)
\]
sqr-neg8.8%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \sqrt{\color{blue}{\left(-x\right) \cdot \left(-x\right)}}}}\right)
\]
sqrt-unprod1.1%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(\sqrt{-x} \cdot \sqrt{-x}\right)}}}\right)
\]
add-sqr-sqrt2.2%
\[\leadsto \log \left(\frac{1}{e^{\frac{\cos B}{\sin B} \cdot \color{blue}{\left(-x\right)}}}\right)
\]
*-commutative2.2%
\[\leadsto \log \left(\frac{1}{e^{\color{blue}{\left(-x\right) \cdot \frac{\cos B}{\sin B}}}}\right)
\]
exp-prod2.1%
\[\leadsto \log \left(\frac{1}{\color{blue}{{\left(e^{-x}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}}\right)
\]
add-sqr-sqrt1.2%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{-x} \cdot \sqrt{-x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod8.9%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{\left(-x\right) \cdot \left(-x\right)}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqr-neg8.9%
\[\leadsto \log \left(\frac{1}{{\left(e^{\sqrt{\color{blue}{x \cdot x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
sqrt-unprod7.7%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{\sqrt{x} \cdot \sqrt{x}}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
add-sqr-sqrt9.8%
\[\leadsto \log \left(\frac{1}{{\left(e^{\color{blue}{x}}\right)}^{\left(\frac{\cos B}{\sin B}\right)}}\right)
\]
exp-prod10.0%
\[\leadsto \log \left(\frac{1}{\color{blue}{e^{x \cdot \frac{\cos B}{\sin B}}}}\right)
\]
clear-num10.0%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \color{blue}{\frac{1}{\frac{\sin B}{\cos B}}}}}\right)
\]
tan-quot10.0%
\[\leadsto \log \left(\frac{1}{e^{x \cdot \frac{1}{\color{blue}{\tan B}}}}\right)
\]
Applied egg-rr 56.9%
\[\leadsto \color{blue}{-\frac{x}{\tan B}}
\]
Step-by-step derivation distribute-neg-frac56.9%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Simplified56.9%
\[\leadsto \color{blue}{\frac{-x}{\tan B}}
\]
Recombined 2 regimes into one program. Final simplification56.6%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -1.35 \cdot 10^{+112}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\end{array}
\]
Alternative 18? \[\begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-33}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\]
Derivation Split input into 2 regimes if F < -2.4e-33 Initial program 59.8%
\[\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 in F around -inf 94.4%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 48.6%
\[\leadsto \color{blue}{\left(0.3333333333333333 \cdot x - 0.16666666666666666\right) \cdot B + -1 \cdot \frac{1 + x}{B}}
\]
if -2.4e-33 < F Initial program 85.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)}
\]
Taylor expanded in F around -inf 36.9%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 16.4%
\[\leadsto \color{blue}{-1 \cdot \frac{1 + x}{B}}
\]
Step-by-step derivation associate-*r/16.4%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(1 + x\right)}{B}}
\]
distribute-lft-in16.4%
\[\leadsto \frac{\color{blue}{-1 \cdot 1 + -1 \cdot x}}{B}
\]
metadata-eval16.4%
\[\leadsto \frac{\color{blue}{-1} + -1 \cdot x}{B}
\]
neg-mul-116.4%
\[\leadsto \frac{-1 + \color{blue}{\left(-x\right)}}{B}
\]
Simplified16.4%
\[\leadsto \color{blue}{\frac{-1 + \left(-x\right)}{B}}
\]
Taylor expanded in x around inf 28.1%
\[\leadsto \color{blue}{-1 \cdot \frac{x}{B}}
\]
Step-by-step derivation mul-1-neg28.1%
\[\leadsto \color{blue}{-\frac{x}{B}}
\]
distribute-neg-frac28.1%
\[\leadsto \color{blue}{\frac{-x}{B}}
\]
Simplified28.1%
\[\leadsto \color{blue}{\frac{-x}{B}}
\]
Recombined 2 regimes into one program. Final simplification34.2%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-33}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\]
Alternative 19? \[\begin{array}{l}
\mathbf{if}\;F \leq -1.55 \cdot 10^{-33}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\]
Derivation Split input into 2 regimes if F < -1.54999999999999998e-33 Initial program 59.8%
\[\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 in F around -inf 94.4%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 48.1%
\[\leadsto \color{blue}{-1 \cdot \frac{1 + x}{B}}
\]
Step-by-step derivation associate-*r/48.1%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(1 + x\right)}{B}}
\]
distribute-lft-in48.1%
\[\leadsto \frac{\color{blue}{-1 \cdot 1 + -1 \cdot x}}{B}
\]
metadata-eval48.1%
\[\leadsto \frac{\color{blue}{-1} + -1 \cdot x}{B}
\]
neg-mul-148.1%
\[\leadsto \frac{-1 + \color{blue}{\left(-x\right)}}{B}
\]
Simplified48.1%
\[\leadsto \color{blue}{\frac{-1 + \left(-x\right)}{B}}
\]
Taylor expanded in x around 0 48.1%
\[\leadsto \color{blue}{-1 \cdot \frac{x}{B} - \frac{1}{B}}
\]
Step-by-step derivation sub-neg48.1%
\[\leadsto \color{blue}{-1 \cdot \frac{x}{B} + \left(-\frac{1}{B}\right)}
\]
+-commutative48.1%
\[\leadsto \color{blue}{\left(-\frac{1}{B}\right) + -1 \cdot \frac{x}{B}}
\]
distribute-neg-frac48.1%
\[\leadsto \color{blue}{\frac{-1}{B}} + -1 \cdot \frac{x}{B}
\]
metadata-eval48.1%
\[\leadsto \frac{\color{blue}{-1}}{B} + -1 \cdot \frac{x}{B}
\]
mul-1-neg48.1%
\[\leadsto \frac{-1}{B} + \color{blue}{\left(-\frac{x}{B}\right)}
\]
sub-neg48.1%
\[\leadsto \color{blue}{\frac{-1}{B} - \frac{x}{B}}
\]
div-sub48.1%
\[\leadsto \color{blue}{\frac{-1 - x}{B}}
\]
Simplified48.1%
\[\leadsto \color{blue}{\frac{-1 - x}{B}}
\]
if -1.54999999999999998e-33 < F Initial program 85.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)}
\]
Taylor expanded in F around -inf 36.9%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 16.4%
\[\leadsto \color{blue}{-1 \cdot \frac{1 + x}{B}}
\]
Step-by-step derivation associate-*r/16.4%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(1 + x\right)}{B}}
\]
distribute-lft-in16.4%
\[\leadsto \frac{\color{blue}{-1 \cdot 1 + -1 \cdot x}}{B}
\]
metadata-eval16.4%
\[\leadsto \frac{\color{blue}{-1} + -1 \cdot x}{B}
\]
neg-mul-116.4%
\[\leadsto \frac{-1 + \color{blue}{\left(-x\right)}}{B}
\]
Simplified16.4%
\[\leadsto \color{blue}{\frac{-1 + \left(-x\right)}{B}}
\]
Taylor expanded in x around inf 28.1%
\[\leadsto \color{blue}{-1 \cdot \frac{x}{B}}
\]
Step-by-step derivation mul-1-neg28.1%
\[\leadsto \color{blue}{-\frac{x}{B}}
\]
distribute-neg-frac28.1%
\[\leadsto \color{blue}{\frac{-x}{B}}
\]
Simplified28.1%
\[\leadsto \color{blue}{\frac{-x}{B}}
\]
Recombined 2 regimes into one program. Final simplification34.0%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -1.55 \cdot 10^{-33}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\]
Alternative 20? \[\begin{array}{l}
\mathbf{if}\;F \leq -215000000:\\
\;\;\;\;\frac{-1}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\]
Derivation Split input into 2 regimes if F < -2.15e8 Initial program 55.8%
\[\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 in F around -inf 99.7%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 48.8%
\[\leadsto \color{blue}{-1 \cdot \frac{1 + x}{B}}
\]
Step-by-step derivation associate-*r/48.8%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(1 + x\right)}{B}}
\]
distribute-lft-in48.8%
\[\leadsto \frac{\color{blue}{-1 \cdot 1 + -1 \cdot x}}{B}
\]
metadata-eval48.8%
\[\leadsto \frac{\color{blue}{-1} + -1 \cdot x}{B}
\]
neg-mul-148.8%
\[\leadsto \frac{-1 + \color{blue}{\left(-x\right)}}{B}
\]
Simplified48.8%
\[\leadsto \color{blue}{\frac{-1 + \left(-x\right)}{B}}
\]
Taylor expanded in x around 0 32.5%
\[\leadsto \color{blue}{\frac{-1}{B}}
\]
if -2.15e8 < F Initial program 85.9%
\[\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 in F around -inf 37.1%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 17.3%
\[\leadsto \color{blue}{-1 \cdot \frac{1 + x}{B}}
\]
Step-by-step derivation associate-*r/17.3%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(1 + x\right)}{B}}
\]
distribute-lft-in17.3%
\[\leadsto \frac{\color{blue}{-1 \cdot 1 + -1 \cdot x}}{B}
\]
metadata-eval17.3%
\[\leadsto \frac{\color{blue}{-1} + -1 \cdot x}{B}
\]
neg-mul-117.3%
\[\leadsto \frac{-1 + \color{blue}{\left(-x\right)}}{B}
\]
Simplified17.3%
\[\leadsto \color{blue}{\frac{-1 + \left(-x\right)}{B}}
\]
Taylor expanded in x around inf 28.2%
\[\leadsto \color{blue}{-1 \cdot \frac{x}{B}}
\]
Step-by-step derivation mul-1-neg28.2%
\[\leadsto \color{blue}{-\frac{x}{B}}
\]
distribute-neg-frac28.2%
\[\leadsto \color{blue}{\frac{-x}{B}}
\]
Simplified28.2%
\[\leadsto \color{blue}{\frac{-x}{B}}
\]
Recombined 2 regimes into one program. Final simplification29.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;F \leq -215000000:\\
\;\;\;\;\frac{-1}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\]
Alternative 21? \[\frac{-1}{B}
\]
Derivation Initial program 77.7%
\[\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 in F around -inf 54.0%
\[\leadsto \left(-x \cdot \frac{1}{\tan B}\right) + \color{blue}{\frac{-1}{\sin B}}
\]
Taylor expanded in B around 0 25.8%
\[\leadsto \color{blue}{-1 \cdot \frac{1 + x}{B}}
\]
Step-by-step derivation associate-*r/25.8%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(1 + x\right)}{B}}
\]
distribute-lft-in25.8%
\[\leadsto \frac{\color{blue}{-1 \cdot 1 + -1 \cdot x}}{B}
\]
metadata-eval25.8%
\[\leadsto \frac{\color{blue}{-1} + -1 \cdot x}{B}
\]
neg-mul-125.8%
\[\leadsto \frac{-1 + \color{blue}{\left(-x\right)}}{B}
\]
Simplified25.8%
\[\leadsto \color{blue}{\frac{-1 + \left(-x\right)}{B}}
\]
Taylor expanded in x around 0 11.6%
\[\leadsto \color{blue}{\frac{-1}{B}}
\]
Final simplification11.6%
\[\leadsto \frac{-1}{B}
\]
Reproduce ? herbie shell --seed 2023166
(FPCore (F B x)
:name "VandenBroeck and Keller, Equation (23)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (- (/ 1.0 2.0))))))