



Bits error versus a1




Bits error versus a2




Bits error versus b1




Bits error versus b2
Results
| Original | 10.4 |
|---|---|
| Target | 10.9 |
| Herbie | 7.5 |
if (* a1 a2) < -1.6921838503221445e-188Initial program 9.0
rmApplied associate-/r*9.5
if -1.6921838503221445e-188 < (* a1 a2) < 8.705897000018843e-219Initial program 13.6
rmApplied times-frac4.2
rmApplied associate-*r/7.9
if 8.705897000018843e-219 < (* a1 a2) < 6.654002524214254e+203Initial program 4.6
rmApplied associate-/r*4.4
rmApplied clear-num4.6
rmApplied associate-/r/4.5
Applied associate-/l*4.4
if 6.654002524214254e+203 < (* a1 a2) Initial program 34.0
rmApplied times-frac9.8
Final simplification7.5
herbie shell --seed 2019002 +o rules:numerics
(FPCore (a1 a2 b1 b2)
:name "Quotient of products"
:herbie-target
(* (/ a1 b1) (/ a2 b2))
(/ (* a1 a2) (* b1 b2)))
Time bar (total: 5.3s)Debug log
1 calls. Slowest were:
| 19.0ms | (/ (* a1 a2) (* b1 b2)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 10.7b
Found 1 expressions with local error:
| 10.7b | (/ (* a1 a2) (* b1 b2)) |
1 calls. Slowest were:
| 5.0ms | (/ (* a1 a2) (* b1 b2)) |
1 calls. Slowest were:
| 30.0ms | (/ (* a1 a2) (* b1 b2)) |
7 calls. Slowest were:
| 202.0ms | (/ (* (* (* a1 a2) (* a1 a2)) (* a1 a2)) (* (* (* b1 b2) (* b1 b2)) (* b1 b2))) |
| 74.0ms | (- (log (* a1 a2)) (log (* b1 b2))) |
| 40.0ms | (/ (* a1 a2) (* b2 b1)) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 5.2b | (/ (* a1 a2) b1) |
| 4.9b | (/ (/ (* a1 a2) b1) b2) |
2 calls. Slowest were:
| 7.0ms | (/ (/ (* a1 a2) b1) b2) |
| 4.0ms | (/ (* a1 a2) b1) |
2 calls. Slowest were:
| 32.0ms | (/ (/ (* a1 a2) b1) b2) |
| 20.0ms | (/ (* a1 a2) b1) |
10 calls. Slowest were:
| 32.0ms | (/ (* a1 a2) (* b2 b1)) |
| 27.0ms | (/ (* a1 a2) (* b2 b1)) |
| 25.0ms | (* (cbrt (/ (* a1 a2) b1)) (cbrt (/ (* a1 a2) b1))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 5.3b | (/ b1 (* a1 a2)) |
| 4.9b | (/ (/ 1 (/ b1 (* a1 a2))) b2) |
| 0.4b | (/ 1 (/ b1 (* a1 a2))) |
3 calls. Slowest were:
| 6.0ms | (/ (/ 1 (/ b1 (* a1 a2))) b2) |
| 2.0ms | (/ 1 (/ b1 (* a1 a2))) |
| 1.0ms | (/ b1 (* a1 a2)) |
3 calls. Slowest were:
| 19.0ms | (/ b1 (* a1 a2)) |
| 19.0ms | (/ (/ 1 (/ b1 (* a1 a2))) b2) |
| 14.0ms | (/ 1 (/ b1 (* a1 a2))) |
18 calls. Slowest were:
| 61.0ms | (sqrt (/ 1 (/ b1 (* a1 a2)))) |
| 49.0ms | (* (cbrt (/ 1 (/ b1 (* a1 a2)))) (cbrt (/ 1 (/ b1 (* a1 a2))))) |
| 35.0ms | (/ (* a1 a2) (* b2 b1)) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 10.5b | (* (/ a1 b1) (/ a2 b2)) |
1 calls. Slowest were:
| 6.0ms | (* (/ a1 b1) (/ a2 b2)) |
1 calls. Slowest were:
| 32.0ms | (* (/ a1 b1) (/ a2 b2)) |
15 calls. Slowest were:
| 428.0ms | (* (* (* (/ a1 b1) (/ a1 b1)) (/ a1 b1)) (* (* (/ a2 b2) (/ a2 b2)) (/ a2 b2))) |
| 56.0ms | (+ (log (/ a1 b1)) (log (/ a2 b2))) |
| 24.0ms | (/ (* a1 a2) (* b2 b1)) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 0b
31.2% (7.5b remaining)
Error of 7.5b against oracle of 0.0b and baseline of 10.9b