



Bits error versus a1




Bits error versus a2




Bits error versus b1




Bits error versus b2
Results
| Original | 10.8 |
|---|---|
| Target | 11.0 |
| Herbie | 5.2 |
if (* b1 b2) < -2.589198304171334e+296 or 4.382268559785013e+274 < (* b1 b2) Initial program 19.1
rmApplied times-frac3.0
if -2.589198304171334e+296 < (* b1 b2) < -2.4602492454623204e-240 or 2.4341944931411e-314 < (* b1 b2) < 4.382268559785013e+274Initial program 5.4
rmApplied div-inv5.5
if -2.4602492454623204e-240 < (* b1 b2) < 2.4341944931411e-314Initial program 45.5
rmApplied clear-num45.5
rmApplied times-frac7.4
Final simplification5.2
herbie shell --seed 2019016 +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: 6.7s)Debug log
| 335× | (pre true 80) |
| 335× | (body real 80) |
| 31.0ms | (/ (* a1 a2) (* b1 b2)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 8.9b
Found 1 expressions with local error:
| 8.9b | (/ (* a1 a2) (* b1 b2)) |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 1× | add-log-exp |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | add-cube-cbrt |
| 1× | div-exp |
| 1× | times-frac |
| 1× | *-un-lft-identity |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 3.0ms | (/ (* a1 a2) (* b1 b2)) |
| 32.0ms | (/ (* a1 a2) (* b1 b2)) |
| 203.0ms | (/ (* (* (* a1 a2) (* a1 a2)) (* a1 a2)) (* (* (* b1 b2) (* b1 b2)) (* b1 b2))) |
| 56.0ms | (- (log (* a1 a2)) (log (* b1 b2))) |
| 40.0ms | (/ (* a1 a2) (* b2 b1)) |
| 33.0ms | (/ (* a1 a2) (* b2 b1)) |
| 32.0ms | (/ (* a1 a2) (* b2 b1)) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 9.2b | (* (* a1 a2) (/ 1 (* b1 b2))) |
| 0.2b | (/ 1 (* b1 b2)) |
| 7× | add-exp-log |
| 5× | pow1 |
| 4× | associate-*r* |
| 4× | add-cbrt-cube |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | div-inv |
| 2× | log1p-expm1-u |
| 2× | prod-exp |
| 2× | rec-exp |
| 2× | expm1-log1p-u |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 8.0ms | (* (* a1 a2) (/ 1 (* b1 b2))) |
| 1.0ms | (/ 1 (* b1 b2)) |
| 32.0ms | (* (* a1 a2) (/ 1 (* b1 b2))) |
| 9.0ms | (/ 1 (* b1 b2)) |
| 481.0ms | (* (* a1 a2) (/ 1 (* b1 b2))) |
| 313.0ms | (+ (log (* a1 a2)) (log (/ 1 (* b1 b2)))) |
| 106.0ms | (* (* (* (* a1 a2) (* a1 a2)) (* a1 a2)) (* (* (/ 1 (* b1 b2)) (/ 1 (* b1 b2))) (/ 1 (* b1 b2)))) |
| 101.0ms | (+ (log (* a1 a2)) (- (log (* b1 b2)))) |
| 23.0ms | (/ (* a1 a2) (* b2 b1)) |
9 alts after pruning (7 fresh and 2 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 8.7b | (/ (* b1 b2) (* a1 a2)) |
| 0.8b | (/ 1 (/ (* b1 b2) (* a1 a2))) |
| 7× | add-exp-log |
| 6× | associate-/r* |
| 4× | add-cbrt-cube |
| 3× | div-inv |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | pow1 |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | div-exp |
| 2× | times-frac |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 2× | expm1-log1p-u |
| 1× | inv-pow |
| 1× | associate-/l* |
| 1× | pow-flip |
| 1× | associate-/r/ |
| 1× | cbrt-undiv |
| 6.0ms | (/ (* b1 b2) (* a1 a2)) |
| 2.0ms | (/ 1 (/ (* b1 b2) (* a1 a2))) |
| 25.0ms | (/ 1 (/ (* b1 b2) (* a1 a2))) |
| 25.0ms | (/ (* b1 b2) (* a1 a2)) |
| 122.0ms | (/ (* (* (* b1 b2) (* b1 b2)) (* b1 b2)) (* (* (* a1 a2) (* a1 a2)) (* a1 a2))) |
| 55.0ms | (cbrt (/ (* b1 b2) (* a1 a2))) |
| 49.0ms | (sqrt (/ (* b1 b2) (* a1 a2))) |
| 44.0ms | (- (log (* b1 b2)) (log (* a1 a2))) |
| 31.0ms | (/ (* b1 b2) (* a1 a2)) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 5.8b | (/ (/ (* b1 b2) a1) a2) |
| 5.0b | (/ (* b1 b2) a1) |
| 0.8b | (/ 1 (/ (/ (* b1 b2) a1) a2)) |
| 5× | associate-/l* |
| 5× | div-inv |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | associate-/r* |
| 4× | pow1 |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-cbrt-cube |
| 3× | frac-2neg |
| 3× | clear-num |
| 3× | expm1-log1p-u |
| 1× | associate-/l/ |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | associate-/r/ |
| 1× | rec-exp |
| 8.0ms | (/ (/ (* b1 b2) a1) a2) |
| 4.0ms | (/ (* b1 b2) a1) |
| 2.0ms | (/ 1 (/ (/ (* b1 b2) a1) a2)) |
| 38.0ms | (/ 1 (/ (/ (* b1 b2) a1) a2)) |
| 37.0ms | (/ (/ (* b1 b2) a1) a2) |
| 20.0ms | (/ (* b1 b2) a1) |
| 67.0ms | (/ (/ (* b1 b2) a1) a2) |
| 63.0ms | (sqrt (/ (/ (* b1 b2) a1) a2)) |
| 35.0ms | (cbrt (/ (/ (* b1 b2) a1) a2)) |
| 34.0ms | (/ (* b2 b1) (* a1 a2)) |
| 34.0ms | (/ (* b2 b1) (* a1 a2)) |
9 alts after pruning (7 fresh and 2 done)
Merged error: 0.0b
53% (5.2b remaining)
Error of 5.2b against oracle of 0.0b and baseline of 11.0b
| 10004× | (pre true 80) |
| 10004× | (body real 80) |