


Bits error versus x



Bits error versus y



Bits error versus z
if x < -12092646693085662.0 or 653141293.4019859 < x Initial program 0.1
Taylor expanded around 0 8.8
Taylor expanded around inf 8.8
Simplified0.1
if -12092646693085662.0 < x < 653141293.4019859Initial program 2.5
Taylor expanded around 0 0.1
rmApplied flip-+0.1
Applied associate-/l/0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2018360 +o rules:numerics
(FPCore (x y z)
:name "fabs fraction 1"
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))
Time bar (total: 13.1s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 4.2b | (* (/ x y) z) |
| 0.0b | (/ (+ x 4) y) |
| 0.0b | (- (/ (+ x 4) y) (* (/ x y) z)) |
3 calls. Slowest were:
| 13.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 5.0ms | (/ (+ x 4) y) |
| 4.0ms | (* (/ x y) z) |
3 calls. Slowest were:
| 32.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 25.0ms | (* (/ x y) z) |
| 17.0ms | (/ (+ x 4) y) |
31 calls. Slowest were:
| 171.0ms | (- (* (+ x 4) y) (* y (* x z))) |
| 118.0ms | (fma (+ x 4) (/ 1 y) (- (* z (/ x y)))) |
| 108.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 5.0b | (/ (* x z) y) |
| 0.0b | (/ (+ x 4) y) |
| 0.0b | (- (/ (+ x 4) y) (/ (* x z) y)) |
3 calls. Slowest were:
| 12.0ms | (- (/ (+ x 4) y) (/ (* x z) y)) |
| 5.0ms | (/ (+ x 4) y) |
| 4.0ms | (/ (* x z) y) |
3 calls. Slowest were:
| 48.0ms | (- (/ (+ x 4) y) (/ (* x z) y)) |
| 25.0ms | (/ (+ x 4) y) |
| 22.0ms | (/ (* x z) y) |
57 calls. Slowest were:
| 365.0ms | (fma (+ x 4) (/ 1 y) (- (* (/ 1 y) (* x z)))) |
| 240.0ms | (fma (+ x 4) (/ 1 y) (- (* (/ (* x z) y) 1))) |
| 225.0ms | (fma 1 (/ (+ x 4) y) (- (* (/ 1 y) (* x z)))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 2.7b | (fma (- z) (/ x y) (+ (/ x y) (/ 4 y))) |
| 0.0b | (+ (/ x y) (/ 4 y)) |
2 calls. Slowest were:
| 6.0ms | (+ (/ x y) (/ 4 y)) |
| 0.0ms | (fma (- z) (/ x y) (+ (/ x y) (/ 4 y))) |
2 calls. Slowest were:
| 58.0ms | (fma (- z) (/ x y) (+ (/ x y) (/ 4 y))) |
| 24.0ms | (+ (/ x y) (/ 4 y)) |
14 calls. Slowest were:
| 103.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 103.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 80.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 10.2b | (cbrt (/ x y)) |
| 10.2b | (cbrt (/ x y)) |
| 10.2b | (cbrt (/ x y)) |
| 0.7b | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
4 calls. Slowest were:
| 26.0ms | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
| 1.0ms | (cbrt (/ x y)) |
| 0.0ms | (cbrt (/ x y)) |
4 calls. Slowest were:
| 101.0ms | (cbrt (/ x y)) |
| 82.0ms | (cbrt (/ x y)) |
| 72.0ms | (cbrt (/ x y)) |
| 21.0ms | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
44 calls. Slowest were:
| 404.0ms | (* (* (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) (cbrt (/ x y)))) (* (cbrt (/ x y)) (cbrt (/ x y)))) (* (* (* (cbrt (/ x y)) z) (* (cbrt (/ x y)) z)) (* (cbrt (/ x y)) z))) |
| 380.0ms | (exp (* 1/3 (- (log (/ -1 y)) (log (/ -1 x))))) |
| 378.0ms | (exp (* 1/3 (- (log (/ -1 y)) (log (/ -1 x))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
93.4% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 1.6b