


Bits error versus g



Bits error versus h
Initial program 1.0
Initial simplification1.0
rmApplied add-log-exp1.0
rmApplied add-cube-cbrt0.1
Applied log-prod0.1
rmApplied log1p-expm1-u0.1
rmApplied fma-udef0.1
Applied cos-sum0.1
Final simplification0.1
herbie shell --seed 2018360 +o rules:numerics
(FPCore (g h)
:name "2-ancestry mixing, negative discriminant"
(* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))))
Time bar (total: 8.4s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 3 expressions with local error:
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.9b | (/ (acos (/ (- g) h)) 3) |
| 0.0b | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
3 calls. Slowest were:
| 6.0ms | (/ (acos (/ (- g) h)) 3) |
| 4.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.0ms | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
3 calls. Slowest were:
| 95.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 30.0ms | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 9.0ms | (/ (acos (/ (- g) h)) 3) |
14 calls. Slowest were:
| 38.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 27.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 26.0ms | (* 1/3 (acos (* -1 (/ g h)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.9b | (/ (acos (/ (- g) h)) 3) |
| 0.0b | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 0.0b | (log (exp (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
4 calls. Slowest were:
| 6.0ms | (/ (acos (/ (- g) h)) 3) |
| 6.0ms | (log (exp (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 3.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
4 calls. Slowest were:
| 115.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 95.0ms | (log (exp (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 38.0ms | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 13.0ms | (/ (acos (/ (- g) h)) 3) |
25 calls. Slowest were:
| 39.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 38.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 29.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.9b | (/ (acos (/ (- g) h)) 3) |
4 calls. Slowest were:
| 6.0ms | (/ (acos (/ (- g) h)) 3) |
| 4.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 3.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
4 calls. Slowest were:
| 116.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 90.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 80.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 7.0ms | (/ (acos (/ (- g) h)) 3) |
19 calls. Slowest were:
| 41.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 41.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 40.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 1.0b | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 1.0b | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
4 calls. Slowest were:
| 4.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 4.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 2.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
4 calls. Slowest were:
| 151.0ms | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 120.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 107.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 90.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
16 calls. Slowest were:
| 40.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 40.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 40.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b