Average Error: 8.3 → 2.3
Time: 34.5s
Precision: 64
Internal Precision: 576
\[\frac{a - \frac{b \cdot b}{n}}{n - 1}\]
\[\frac{a - b \cdot \frac{b}{n}}{n - 1}\]

Error

Bits error versus a

Bits error versus b

Bits error versus n

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 8.3

    \[\frac{a - \frac{b \cdot b}{n}}{n - 1}\]
  2. Using strategy rm
  3. Applied *-un-lft-identity8.3

    \[\leadsto \frac{a - \frac{b \cdot b}{n}}{\color{blue}{1 \cdot \left(n - 1\right)}}\]
  4. Applied associate-/r*8.3

    \[\leadsto \color{blue}{\frac{\frac{a - \frac{b \cdot b}{n}}{1}}{n - 1}}\]
  5. Applied simplify2.3

    \[\leadsto \frac{\color{blue}{a - b \cdot \frac{b}{n}}}{n - 1}\]

Runtime

Time bar (total: 34.5s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (a b n)
  :name "(a - b*b/n) / (n-1)"
  (/ (- a (/ (* b b) n)) (- n 1)))