


Bits error versus a1



Bits error versus a2



Bits error versus th
Initial program 0.5
Simplified0.5
rmApplied associate-*l/0.5
rmApplied add-cube-cbrt0.5
Applied associate-/r*0.5
rmApplied add-cube-cbrt0.5
Applied associate-/r*0.5
Final simplification0.5
herbie shell --seed 2019008 +o rules:numerics
(FPCore (a1 a2 th)
:name "Migdal et al, Equation (64)"
(+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))))
Time bar (total: 42.3s)Debug log
1 calls. Slowest were:
| 94.0ms | (+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.5b
Found 3 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.4b | (* (/ (cos th) (sqrt 2)) (fma a1 a1 (* a2 a2))) |
| 0.0b | (fma a1 a1 (* a2 a2)) |
3 calls. Slowest were:
| 12.0ms | (* (/ (cos th) (sqrt 2)) (fma a1 a1 (* a2 a2))) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
| 0.0ms | (fma a1 a1 (* a2 a2)) |
3 calls. Slowest were:
| 173.0ms | (* (/ (cos th) (sqrt 2)) (fma a1 a1 (* a2 a2))) |
| 57.0ms | (/ (cos th) (sqrt 2)) |
| 18.0ms | (fma a1 a1 (* a2 a2)) |
57 calls. Slowest were:
| 265.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 143.0ms | (- (+ (/ 1 (sqrt 2)) (* 1/24 (/ (pow th 4) (sqrt 2)))) (* 1/2 (/ (pow th 2) (sqrt 2)))) |
| 136.0ms | (* (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.4b | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2)) |
| 0.2b | (* (cos th) (fma a1 a1 (* a2 a2))) |
| 0.0b | (fma a1 a1 (* a2 a2)) |
3 calls. Slowest were:
| 14.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2)) |
| 11.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
| 0.0ms | (fma a1 a1 (* a2 a2)) |
3 calls. Slowest were:
| 212.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2)) |
| 104.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
| 23.0ms | (fma a1 a1 (* a2 a2)) |
33 calls. Slowest were:
| 394.0ms | (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) |
| 89.0ms | (/ (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 62.0ms | (+ (/ (* (pow a1 2) (cos th)) (sqrt 2)) (/ (* (cos th) (pow a2 2)) (sqrt 2))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.3b | (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 0.2b | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.2b | (* (cos th) (fma a1 a1 (* a2 a2))) |
| 0.0b | (fma a1 a1 (* a2 a2)) |
4 calls. Slowest were:
| 27.0ms | (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 19.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 8.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
4 calls. Slowest were:
| 869.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 143.0ms | (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 110.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
| 31.0ms | (fma a1 a1 (* a2 a2)) |
115 calls. Slowest were:
| 876.0ms | (/ (/ (* (* (* (cos th) (fma a1 a1 (* a2 a2))) (* (cos th) (fma a1 a1 (* a2 a2)))) (* (cos th) (fma a1 a1 (* a2 a2)))) (* (sqrt 2) (sqrt 2))) (sqrt 2)) |
| 477.0ms | (/ (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) (* (sqrt 2) (sqrt 2))) |
| 437.0ms | (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.3b | (/ (/ (* (cos th) (fma a2 a2 (* a1 a1))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 0.2b | (/ (* (cos th) (fma a2 a2 (* a1 a1))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.2b | (* (cos th) (fma a2 a2 (* a1 a1))) |
3 calls. Slowest were:
| 14.0ms | (/ (/ (* (cos th) (fma a2 a2 (* a1 a1))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 10.0ms | (/ (* (cos th) (fma a2 a2 (* a1 a1))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 8.0ms | (* (cos th) (fma a2 a2 (* a1 a1))) |
3 calls. Slowest were:
| 757.0ms | (/ (* (cos th) (fma a2 a2 (* a1 a1))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 177.0ms | (/ (/ (* (cos th) (fma a2 a2 (* a1 a1))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 107.0ms | (* (cos th) (fma a2 a2 (* a1 a1))) |
112 calls. Slowest were:
| 583.0ms | (/ (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a2 a2 (* a1 a1)) (fma a2 a2 (* a1 a1))) (fma a2 a2 (* a1 a1)))) (* (sqrt 2) (sqrt 2))) |
| 483.0ms | (/ (/ (* (* (* (cos th) (fma a2 a2 (* a1 a1))) (* (cos th) (fma a2 a2 (* a1 a1)))) (* (cos th) (fma a2 a2 (* a1 a1)))) (* (sqrt 2) (sqrt 2))) (sqrt 2)) |
| 454.0ms | (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a2 a2 (* a1 a1)) (fma a2 a2 (* a1 a1))) (fma a2 a2 (* a1 a1)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.1b and baseline of 0.5b