Cubic critical Percentage Accurate: 52.8% → 84.4%
Time: 12.4s
Alternatives: 14
Speedup: TODO×
Specification ? \[\begin{array}{l}
t_0 := 3 \cdot a\\
\frac{\left(-b\right) + \sqrt{b \cdot b - t_0 \cdot c}}{t_0}
\end{array}
\]
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}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+62}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{-38}:\\
\;\;\;\;\frac{-0.3333333333333333 \cdot \left(b - \sqrt{\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -3\right)}\right)}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -4.40000000000000029e62 Initial program 54.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 89.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
if -4.40000000000000029e62 < b < 8.80000000000000029e-38 Initial program 78.1%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation /-rgt-identity78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{\frac{3 \cdot a}{1}}}
\]
metadata-eval78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\frac{3 \cdot a}{\color{blue}{--1}}}
\]
associate-/r/78.1%
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} \cdot \left(--1\right)}
\]
metadata-eval78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} \cdot \color{blue}{1}
\]
metadata-eval78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} \cdot \color{blue}{\frac{-1}{-1}}
\]
times-frac78.1%
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot -1}{\left(3 \cdot a\right) \cdot -1}}
\]
*-commutative78.1%
\[\leadsto \frac{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot -1}{\color{blue}{-1 \cdot \left(3 \cdot a\right)}}
\]
times-frac78.0%
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1} \cdot \frac{-1}{3 \cdot a}}
\]
*-commutative78.0%
\[\leadsto \color{blue}{\frac{-1}{3 \cdot a} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1}}
\]
associate-/r*78.0%
\[\leadsto \color{blue}{\frac{\frac{-1}{3}}{a}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1}
\]
associate-*l/78.1%
\[\leadsto \color{blue}{\frac{\frac{-1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-1}}{a}}
\]
Simplified78.1%
\[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot \left(b - \sqrt{\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -3\right)}\right)}{a}}
\]
if 8.80000000000000029e-38 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification86.0%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+62}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{-38}:\\
\;\;\;\;\frac{-0.3333333333333333 \cdot \left(b - \sqrt{\mathsf{fma}\left(b, b, \left(a \cdot c\right) \cdot -3\right)}\right)}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 2? \[\begin{array}{l}
\mathbf{if}\;b \leq -5.2 \cdot 10^{+62}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 9.6 \cdot 10^{-39}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -5.19999999999999968e62 Initial program 54.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 89.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
if -5.19999999999999968e62 < b < 9.60000000000000063e-39 Initial program 78.1%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation /-rgt-identity78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{\frac{3 \cdot a}{1}}}
\]
metadata-eval78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\frac{3 \cdot a}{\color{blue}{--1}}}
\]
associate-/l*78.1%
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \left(--1\right)}{3 \cdot a}}
\]
associate-*r/78.0%
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{--1}{3 \cdot a}}
\]
*-commutative78.0%
\[\leadsto \color{blue}{\frac{--1}{3 \cdot a} \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}
\]
associate-*l/78.1%
\[\leadsto \color{blue}{\frac{\left(--1\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{3 \cdot a}}
\]
associate-*r/78.1%
\[\leadsto \color{blue}{\left(--1\right) \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\]
metadata-eval78.1%
\[\leadsto \color{blue}{1} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
metadata-eval78.1%
\[\leadsto \color{blue}{\frac{-1}{-1}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
times-frac78.1%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{-1 \cdot \left(3 \cdot a\right)}}
\]
neg-mul-178.1%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{-3 \cdot a}}
\]
distribute-rgt-neg-in78.1%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{3 \cdot \left(-a\right)}}
\]
times-frac78.0%
\[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}}
\]
metadata-eval78.0%
\[\leadsto \color{blue}{-0.3333333333333333} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}
\]
neg-mul-178.0%
\[\leadsto -0.3333333333333333 \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{-1 \cdot a}}
\]
Simplified78.1%
\[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}}
\]
if 9.60000000000000063e-39 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification86.0%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -5.2 \cdot 10^{+62}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 9.6 \cdot 10^{-39}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 3? \[\begin{array}{l}
\mathbf{if}\;b \leq -8.8 \cdot 10^{+61}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-38}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b - \left(a \cdot c\right) \cdot 3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -8.8000000000000001e61 Initial program 54.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 89.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
if -8.8000000000000001e61 < b < 1.05000000000000006e-38 Initial program 78.1%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation /-rgt-identity78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{\frac{3 \cdot a}{1}}}
\]
metadata-eval78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\frac{3 \cdot a}{\color{blue}{--1}}}
\]
associate-/l*78.1%
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \left(--1\right)}{3 \cdot a}}
\]
associate-*r/78.0%
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{--1}{3 \cdot a}}
\]
*-commutative78.0%
\[\leadsto \color{blue}{\frac{--1}{3 \cdot a} \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}
\]
associate-*l/78.1%
\[\leadsto \color{blue}{\frac{\left(--1\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{3 \cdot a}}
\]
associate-*r/78.1%
\[\leadsto \color{blue}{\left(--1\right) \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\]
metadata-eval78.1%
\[\leadsto \color{blue}{1} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
metadata-eval78.1%
\[\leadsto \color{blue}{\frac{-1}{-1}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
times-frac78.1%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{-1 \cdot \left(3 \cdot a\right)}}
\]
neg-mul-178.1%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{-3 \cdot a}}
\]
distribute-rgt-neg-in78.1%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{3 \cdot \left(-a\right)}}
\]
times-frac78.0%
\[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}}
\]
metadata-eval78.0%
\[\leadsto \color{blue}{-0.3333333333333333} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}
\]
neg-mul-178.0%
\[\leadsto -0.3333333333333333 \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{-1 \cdot a}}
\]
Simplified78.1%
\[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}}
\]
Step-by-step derivation fma-udef78.1%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b + a \cdot \left(c \cdot -3\right)}}}{a}
\]
associate-*r*78.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{\left(a \cdot c\right) \cdot -3}}}{a}
\]
*-commutative78.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{-3 \cdot \left(a \cdot c\right)}}}{a}
\]
metadata-eval78.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{\left(-3\right)} \cdot \left(a \cdot c\right)}}{a}
\]
cancel-sign-sub-inv78.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}
\]
Applied egg-rr 78.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}
\]
if 1.05000000000000006e-38 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification85.9%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -8.8 \cdot 10^{+61}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-38}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b - \left(a \cdot c\right) \cdot 3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 4? \[\begin{array}{l}
\mathbf{if}\;b \leq -2.75 \cdot 10^{+63}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-36}:\\
\;\;\;\;\frac{\sqrt{a \cdot \left(c \cdot -3\right) + b \cdot b} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -2.75000000000000002e63 Initial program 54.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 89.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
if -2.75000000000000002e63 < b < 7.20000000000000064e-36 Initial program 78.1%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation associate-*r*78.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}
\]
cancel-sign-sub-inv78.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + \left(-3\right) \cdot \left(a \cdot c\right)}}}{3 \cdot a}
\]
metadata-eval78.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b + \color{blue}{-3} \cdot \left(a \cdot c\right)}}{3 \cdot a}
\]
*-commutative78.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b + \color{blue}{\left(a \cdot c\right) \cdot -3}}}{3 \cdot a}
\]
associate-*r*78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b + \color{blue}{a \cdot \left(c \cdot -3\right)}}}{3 \cdot a}
\]
Applied egg-rr 78.1%
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + a \cdot \left(c \cdot -3\right)}}}{3 \cdot a}
\]
if 7.20000000000000064e-36 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification85.9%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -2.75 \cdot 10^{+63}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-36}:\\
\;\;\;\;\frac{\sqrt{a \cdot \left(c \cdot -3\right) + b \cdot b} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 5? \[\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{+63}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-37}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -2.00000000000000012e63 Initial program 54.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 89.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
if -2.00000000000000012e63 < b < 9.00000000000000081e-37 Initial program 78.1%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
if 9.00000000000000081e-37 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification85.9%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{+63}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-37}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 6? \[\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{-71}:\\
\;\;\;\;0.5 \cdot \frac{c}{b} + \frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-38}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\left(a \cdot c\right) \cdot -3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -5.7999999999999997e-71 Initial program 63.6%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 81.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
Step-by-step derivation associate-*r/81.9%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}} + 0.5 \cdot \frac{c}{b}
\]
Applied egg-rr 81.9%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}} + 0.5 \cdot \frac{c}{b}
\]
if -5.7999999999999997e-71 < b < 1.15000000000000001e-38 Initial program 75.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation /-rgt-identity75.7%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{\frac{3 \cdot a}{1}}}
\]
metadata-eval75.7%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\frac{3 \cdot a}{\color{blue}{--1}}}
\]
associate-/l*75.7%
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \left(--1\right)}{3 \cdot a}}
\]
associate-*r/75.7%
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{--1}{3 \cdot a}}
\]
*-commutative75.7%
\[\leadsto \color{blue}{\frac{--1}{3 \cdot a} \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}
\]
associate-*l/75.7%
\[\leadsto \color{blue}{\frac{\left(--1\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{3 \cdot a}}
\]
associate-*r/75.7%
\[\leadsto \color{blue}{\left(--1\right) \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\]
metadata-eval75.7%
\[\leadsto \color{blue}{1} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
metadata-eval75.7%
\[\leadsto \color{blue}{\frac{-1}{-1}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
times-frac75.7%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{-1 \cdot \left(3 \cdot a\right)}}
\]
neg-mul-175.7%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{-3 \cdot a}}
\]
distribute-rgt-neg-in75.7%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{3 \cdot \left(-a\right)}}
\]
times-frac75.8%
\[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}}
\]
metadata-eval75.8%
\[\leadsto \color{blue}{-0.3333333333333333} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}
\]
neg-mul-175.8%
\[\leadsto -0.3333333333333333 \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{-1 \cdot a}}
\]
Simplified75.8%
\[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}}
\]
Step-by-step derivation fma-udef75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b + a \cdot \left(c \cdot -3\right)}}}{a}
\]
associate-*r*75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{\left(a \cdot c\right) \cdot -3}}}{a}
\]
*-commutative75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{-3 \cdot \left(a \cdot c\right)}}}{a}
\]
metadata-eval75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{\left(-3\right)} \cdot \left(a \cdot c\right)}}{a}
\]
cancel-sign-sub-inv75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}
\]
Applied egg-rr 75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}
\]
Taylor expanded in b around 0 71.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{-3 \cdot \left(c \cdot a\right)}}}{a}
\]
if 1.15000000000000001e-38 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification82.1%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{-71}:\\
\;\;\;\;0.5 \cdot \frac{c}{b} + \frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-38}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{\left(a \cdot c\right) \cdot -3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 7? \[\begin{array}{l}
\mathbf{if}\;b \leq -7 \cdot 10^{-72}:\\
\;\;\;\;0.5 \cdot \frac{c}{b} + \frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-37}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{a \cdot \left(c \cdot -3\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 3 regimes if b < -7.00000000000000001e-72 Initial program 63.6%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 81.9%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
Step-by-step derivation associate-*r/81.9%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}} + 0.5 \cdot \frac{c}{b}
\]
Applied egg-rr 81.9%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}} + 0.5 \cdot \frac{c}{b}
\]
if -7.00000000000000001e-72 < b < 6.80000000000000037e-37 Initial program 75.7%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation /-rgt-identity75.7%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{\frac{3 \cdot a}{1}}}
\]
metadata-eval75.7%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\frac{3 \cdot a}{\color{blue}{--1}}}
\]
associate-/l*75.7%
\[\leadsto \color{blue}{\frac{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \left(--1\right)}{3 \cdot a}}
\]
associate-*r/75.7%
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{--1}{3 \cdot a}}
\]
*-commutative75.7%
\[\leadsto \color{blue}{\frac{--1}{3 \cdot a} \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}
\]
associate-*l/75.7%
\[\leadsto \color{blue}{\frac{\left(--1\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{3 \cdot a}}
\]
associate-*r/75.7%
\[\leadsto \color{blue}{\left(--1\right) \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}}
\]
metadata-eval75.7%
\[\leadsto \color{blue}{1} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
metadata-eval75.7%
\[\leadsto \color{blue}{\frac{-1}{-1}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
times-frac75.7%
\[\leadsto \color{blue}{\frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{-1 \cdot \left(3 \cdot a\right)}}
\]
neg-mul-175.7%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{-3 \cdot a}}
\]
distribute-rgt-neg-in75.7%
\[\leadsto \frac{-1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}{\color{blue}{3 \cdot \left(-a\right)}}
\]
times-frac75.8%
\[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}}
\]
metadata-eval75.8%
\[\leadsto \color{blue}{-0.3333333333333333} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{-a}
\]
neg-mul-175.8%
\[\leadsto -0.3333333333333333 \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\color{blue}{-1 \cdot a}}
\]
Simplified75.8%
\[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{b - \sqrt{\mathsf{fma}\left(b, b, a \cdot \left(c \cdot -3\right)\right)}}{a}}
\]
Step-by-step derivation fma-udef75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b + a \cdot \left(c \cdot -3\right)}}}{a}
\]
associate-*r*75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{\left(a \cdot c\right) \cdot -3}}}{a}
\]
*-commutative75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{-3 \cdot \left(a \cdot c\right)}}}{a}
\]
metadata-eval75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{b \cdot b + \color{blue}{\left(-3\right)} \cdot \left(a \cdot c\right)}}{a}
\]
cancel-sign-sub-inv75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}
\]
Applied egg-rr 75.8%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}
\]
Taylor expanded in b around 0 71.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{-3 \cdot \left(c \cdot a\right)}}}{a}
\]
Step-by-step derivation *-commutative71.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{-3 \cdot \color{blue}{\left(a \cdot c\right)}}}{a}
\]
*-commutative71.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{\left(a \cdot c\right) \cdot -3}}}{a}
\]
associate-*l*71.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{a \cdot \left(c \cdot -3\right)}}}{a}
\]
Simplified71.0%
\[\leadsto -0.3333333333333333 \cdot \frac{b - \sqrt{\color{blue}{a \cdot \left(c \cdot -3\right)}}}{a}
\]
if 6.80000000000000037e-37 < b Initial program 14.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 93.1%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 3 regimes into one program. Final simplification82.1%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -7 \cdot 10^{-72}:\\
\;\;\;\;0.5 \cdot \frac{c}{b} + \frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-37}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{b - \sqrt{a \cdot \left(c \cdot -3\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 8? \[\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 2 regimes if b < -4.999999999999985e-310 Initial program 68.0%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 63.8%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
if -4.999999999999985e-310 < b Initial program 34.2%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 67.3%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 2 regimes into one program. Final simplification65.5%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 9? \[\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;0.5 \cdot \frac{c}{b} + \frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 2 regimes if b < -4.999999999999985e-310 Initial program 68.0%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 63.8%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a} + 0.5 \cdot \frac{c}{b}}
\]
Step-by-step derivation associate-*r/63.8%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}} + 0.5 \cdot \frac{c}{b}
\]
Applied egg-rr 63.8%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}} + 0.5 \cdot \frac{c}{b}
\]
if -4.999999999999985e-310 < b Initial program 34.2%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 67.3%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 2 regimes into one program. Final simplification65.5%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;0.5 \cdot \frac{c}{b} + \frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 10? \[\begin{array}{l}
\mathbf{if}\;b \leq 2.9 \cdot 10^{-307}:\\
\;\;\;\;\frac{b \cdot -2}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 2 regimes if b < 2.9e-307 Initial program 68.0%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 63.6%
\[\leadsto \frac{\color{blue}{-2 \cdot b}}{3 \cdot a}
\]
Step-by-step derivation *-commutative63.6%
\[\leadsto \frac{\color{blue}{b \cdot -2}}{3 \cdot a}
\]
Simplified63.6%
\[\leadsto \frac{\color{blue}{b \cdot -2}}{3 \cdot a}
\]
if 2.9e-307 < b Initial program 34.2%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 67.3%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 2 regimes into one program. Final simplification65.4%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq 2.9 \cdot 10^{-307}:\\
\;\;\;\;\frac{b \cdot -2}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 11? \[\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 2 regimes if b < -4.999999999999985e-310 Initial program 68.0%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 63.5%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a}}
\]
Step-by-step derivation *-commutative63.5%
\[\leadsto \color{blue}{\frac{b}{a} \cdot -0.6666666666666666}
\]
Simplified63.5%
\[\leadsto \color{blue}{\frac{b}{a} \cdot -0.6666666666666666}
\]
if -4.999999999999985e-310 < b Initial program 34.2%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 67.3%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 2 regimes into one program. Final simplification65.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;-0.6666666666666666 \cdot \frac{b}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 12? \[\begin{array}{l}
\mathbf{if}\;b \leq 2.5 \cdot 10^{-309}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 2 regimes if b < 2.5000000000000022e-309 Initial program 68.0%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Step-by-step derivation associate-*r*68.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}
\]
cancel-sign-sub-inv68.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + \left(-3\right) \cdot \left(a \cdot c\right)}}}{3 \cdot a}
\]
metadata-eval68.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b + \color{blue}{-3} \cdot \left(a \cdot c\right)}}{3 \cdot a}
\]
*-commutative68.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b + \color{blue}{\left(a \cdot c\right) \cdot -3}}}{3 \cdot a}
\]
associate-*r*68.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b + \color{blue}{a \cdot \left(c \cdot -3\right)}}}{3 \cdot a}
\]
Applied egg-rr 68.0%
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + a \cdot \left(c \cdot -3\right)}}}{3 \cdot a}
\]
Taylor expanded in b around -inf 63.5%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a}}
\]
Step-by-step derivation associate-*r/63.5%
\[\leadsto \color{blue}{\frac{-0.6666666666666666 \cdot b}{a}}
\]
associate-/l*63.5%
\[\leadsto \color{blue}{\frac{-0.6666666666666666}{\frac{a}{b}}}
\]
Simplified63.5%
\[\leadsto \color{blue}{\frac{-0.6666666666666666}{\frac{a}{b}}}
\]
if 2.5000000000000022e-309 < b Initial program 34.2%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 67.3%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 2 regimes into one program. Final simplification65.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq 2.5 \cdot 10^{-309}:\\
\;\;\;\;\frac{-0.6666666666666666}{\frac{a}{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 13? \[\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;\frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Derivation Split input into 2 regimes if b < -4.999999999999985e-310 Initial program 68.0%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around -inf 63.6%
\[\leadsto \frac{\color{blue}{-2 \cdot b}}{3 \cdot a}
\]
Step-by-step derivation *-commutative63.6%
\[\leadsto \frac{\color{blue}{b \cdot -2}}{3 \cdot a}
\]
Simplified63.6%
\[\leadsto \frac{\color{blue}{b \cdot -2}}{3 \cdot a}
\]
Taylor expanded in b around 0 63.5%
\[\leadsto \color{blue}{-0.6666666666666666 \cdot \frac{b}{a}}
\]
Step-by-step derivation *-commutative63.5%
\[\leadsto \color{blue}{\frac{b}{a} \cdot -0.6666666666666666}
\]
associate-*l/63.5%
\[\leadsto \color{blue}{\frac{b \cdot -0.6666666666666666}{a}}
\]
Simplified63.5%
\[\leadsto \color{blue}{\frac{b \cdot -0.6666666666666666}{a}}
\]
if -4.999999999999985e-310 < b Initial program 34.2%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 67.3%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Recombined 2 regimes into one program. Final simplification65.3%
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-310}:\\
\;\;\;\;\frac{b \cdot -0.6666666666666666}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}
\]
Alternative 14? \[\frac{c}{b} \cdot -0.5
\]
Derivation Initial program 51.8%
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}
\]
Taylor expanded in b around inf 33.5%
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}
\]
Final simplification33.5%
\[\leadsto \frac{c}{b} \cdot -0.5
\]
Reproduce ? herbie shell --seed 2023166
(FPCore (a b c)
:name "Cubic critical"
:precision binary64
(/ (+ (- b) (sqrt (- (* b b) (* (* 3.0 a) c)))) (* 3.0 a)))