Average Error: 55.4 → 46.4
Time: 12.8s
Precision: 64
Internal Precision: 128
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
\[0\]

Error

Bits error versus a

Bits error versus b_2

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 55.4

    \[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
  2. Initial simplification55.4

    \[\leadsto \frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
  3. Taylor expanded around -inf 46.4

    \[\leadsto \color{blue}{0}\]
  4. Final simplification46.4

    \[\leadsto 0\]

Runtime

Time bar (total: 12.8s)Debug logProfile

herbie shell --seed 2018255 
(FPCore (a b_2 c)
  :name "quad2m (problem 3.2.1, negative)"
  (/ (- (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))