Average Error: 19.3 → 0.0
Time: 8.9s
Precision: 64
Internal Precision: 576
\[\sqrt{{\left(\frac{p}{q - r}\right)}^{2}}\]
\[\left|\frac{p}{q - r}\right|\]

Error

Bits error versus p

Bits error versus q

Bits error versus r

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 19.3

    \[\sqrt{{\left(\frac{p}{q - r}\right)}^{2}}\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{\left|\frac{p}{q - r}\right|}\]

Runtime

Time bar (total: 8.9s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (p q r)
  :name "sqrt((p/(q-r))^2)"
  (sqrt (pow (/ p (- q r)) 2)))