Average Error: 0.0 → 0.0
Time: 9.2s
Precision: 64
Internal Precision: 320
\[\left({r}^{2} - 1\right) + {b}^{2}\]
\[r \cdot r + \left(b \cdot b - 1\right)\]

Error

Bits error versus r

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left({r}^{2} - 1\right) + {b}^{2}\]
  2. Initial simplification0.0

    \[\leadsto \left(b \cdot b - 1\right) + r \cdot r\]
  3. Final simplification0.0

    \[\leadsto r \cdot r + \left(b \cdot b - 1\right)\]

Runtime

Time bar (total: 9.2s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (r b)
  :name "r^2-1+b^2"
  (+ (- (pow r 2) 1) (pow b 2)))