


Bits error versus g



Bits error versus h
Initial program 1.0
Simplified1.0
rmApplied add-cube-cbrt1.0
rmApplied cbrt-unprod0.1
Final simplification0.1
herbie shell --seed 2019002 +o rules:numerics
(FPCore (g h)
:name "2-ancestry mixing, negative discriminant"
(* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))))
Time bar (total: 11.4s)Debug log
1 calls. Slowest were:
| 45.0ms | (* 2 (cos (+ (/ (* 2 PI) 3) (/ (acos (/ (- g) h)) 3)))) |
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))) |
| 1.0b | (/ (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:
| 108.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 24.0ms | (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) |
| 7.0ms | (/ (acos (/ (- g) h)) 3) |
14 calls. Slowest were:
| 37.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 36.0ms | (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)) |
| 22.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
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))) |
| 1.0b | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 1.0b | (/ (acos (/ (- g) h)) 3) |
| 1.0b | (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
4 calls. Slowest were:
| 3.0ms | (/ (acos (/ (- g) h)) 3) |
| 2.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 0.0ms | (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
4 calls. Slowest were:
| 153.0ms | (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
| 150.0ms | (log1p (expm1 (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 78.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 12.0ms | (/ (acos (/ (- g) h)) 3) |
19 calls. Slowest were:
| 49.0ms | (- (exp (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI)))) 1) |
| 41.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 39.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 1.0b | (cbrt (* (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 1.0b | (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (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))) |
4 calls. Slowest were:
| 10.0ms | (cbrt (* (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 7.0ms | (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
| 2.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
4 calls. Slowest were:
| 117.0ms | (cbrt (* (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 95.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 93.0ms | (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) |
| 85.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
30 calls. Slowest were:
| 119.0ms | (cbrt (* (+ (cos (+ (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cos (- (fma 2/3 PI (/ (acos (/ (- g) h)) 3)) (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 51.0ms | (* (* (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (* (* (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 50.0ms | (* 1/2 (cos (* 2 (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 1.0b
Found 4 expressions with local error:
| 1.0b | (* (cbrt (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cbrt (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 | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
4 calls. Slowest were:
| 11.0ms | (* (cbrt (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cbrt (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 3.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:
| 209.0ms | (* (cbrt (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3)))) (cbrt (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))))) |
| 118.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 96.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
| 84.0ms | (cos (fma 2/3 PI (/ (acos (/ (- g) h)) 3))) |
35 calls. Slowest were:
| 37.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
| 35.0ms | (pow (pow (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) 2) 1/3) |
| 32.0ms | (cos (+ (* 1/3 (acos (* -1 (/ g h)))) (* 2/3 PI))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b