



Bits error versus x0




Bits error versus x1
Results
| Original | 8.4 |
|---|---|
| Target | 0.5 |
| Herbie | 5.1 |
Initial program 8.4
rmApplied clear-num7.5
rmApplied flip3--7.6
rmApplied *-un-lft-identity7.6
Applied add-cube-cbrt7.5
Applied times-frac7.5
Simplified5.1
Final simplification5.1
herbie shell --seed 2019002
(FPCore (x0 x1)
:name "(- (/ x0 (- 1 x1)) x0)"
:pre (or (and (== x0 1.855) (== x1 0.000209)) (and (== x0 2.985) (== x1 0.0186)))
:herbie-target
(/ (* x0 x1) (- 1 x1))
(- (/ x0 (- 1 x1)) x0))
Time bar (total: 36.2s)Debug log
1 calls. Slowest were:
| 9.0ms | (- (/ x0 (- 1 x1)) x0) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 8.4b
Found 2 expressions with local error:
| 7.5b | (- (/ x0 (- 1 x1)) x0) |
| 1.0b | (/ x0 (- 1 x1)) |
2 calls. Slowest were:
| 8.0ms | (- (/ x0 (- 1 x1)) x0) |
| 1.0ms | (/ x0 (- 1 x1)) |
2 calls. Slowest were:
| 34.0ms | (- (/ x0 (- 1 x1)) x0) |
| 24.0ms | (/ x0 (- 1 x1)) |
11 calls. Slowest were:
| 404.0ms | (+ (* x0 (pow x1 3)) (+ (* x0 (pow x1 2)) (* x0 x1))) |
| 85.0ms | (- (+ (/ x0 (pow x1 3)) (+ (/ x0 (pow x1 2)) (/ x0 x1)))) |
| 70.0ms | (+ x0 (+ (* x0 x1) (* x0 (pow x1 2)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 7.3b
Found 1 expressions with local error:
| 7.5b | (- (/ 1 (/ (- 1 x1) x0)) x0) |
1 calls. Slowest were:
| 6.0ms | (- (/ 1 (/ (- 1 x1) x0)) x0) |
1 calls. Slowest were:
| 24.0ms | (- (/ 1 (/ (- 1 x1) x0)) x0) |
3 calls. Slowest were:
| 468.0ms | (+ (* x0 (pow x1 3)) (+ (* x0 (pow x1 2)) (* x0 x1))) |
| 37.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
| 36.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 7.1b
Found 4 expressions with local error:
| 5.4b | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 1.3b | (pow (/ 1 (/ (- 1 x1) x0)) 3) |
| 0.5b | (/ (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 0.5b | (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) |
4 calls. Slowest were:
| 51.0ms | (/ (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 9.0ms | (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) |
| 6.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
4 calls. Slowest were:
| 84.0ms | (/ (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 57.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 31.0ms | (pow (/ 1 (/ (- 1 x1) x0)) 3) |
| 29.0ms | (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) |
161 calls. Slowest were:
| 886.0ms | (/ (- (pow (/ 1 (- 1 x1)) 3) 1) (cbrt (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))))) |
| 699.0ms | (/ (- (/ 1 (/ (- 1 x1) x0)) x0) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 572.0ms | (/ (- (pow (/ 1 (- 1 x1)) 3) 1) (sqrt (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 5.1b
Found 4 expressions with local error:
| 5.4b | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 5.4b | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 5.4b | (+ (pow (/ x0 (- 1 x1)) 3) (* (- x0) (* x0 x0))) |
| 1.3b | (pow (/ x0 (- 1 x1)) 3) |
4 calls. Slowest were:
| 23.0ms | (+ (pow (/ x0 (- 1 x1)) 3) (* (- x0) (* x0 x0))) |
| 13.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 8.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
4 calls. Slowest were:
| 47.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 43.0ms | (+ (pow (/ x0 (- 1 x1)) 3) (* (- x0) (* x0 x0))) |
| 39.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 28.0ms | (pow (/ x0 (- 1 x1)) 3) |
59 calls. Slowest were:
| 365.0ms | (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))) |
| 347.0ms | (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))) |
| 299.0ms | (+ (* 3 (* (pow x0 3) x1)) (+ (* 6 (* (pow x0 3) (pow x1 2))) (pow x0 3))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 4.8b
0% (0.3b remaining)
Error of 5.1b against oracle of 4.8b and baseline of 5.1b