


Bits error versus a1



Bits error versus a2



Bits error versus th
Results
Initial program 0.6
Simplified0.6
rmApplied add-cube-cbrt0.6
Applied associate-/r*0.6
rmApplied fma-udef0.6
Applied distribute-lft-in0.6
Simplified0.5
Final simplification0.5
herbie shell --seed 2019007 +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: 37.8s)Debug log
1 calls. Slowest were:
| 104.0ms | (+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.7b
Found 2 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.5b | (* (/ (cos th) (sqrt 2)) (fma a1 a1 (* a2 a2))) |
2 calls. Slowest were:
| 12.0ms | (* (/ (cos th) (sqrt 2)) (fma a1 a1 (* a2 a2))) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
2 calls. Slowest were:
| 165.0ms | (* (/ (cos th) (sqrt 2)) (fma a1 a1 (* a2 a2))) |
| 39.0ms | (/ (cos th) (sqrt 2)) |
54 calls. Slowest were:
| 315.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 153.0ms | (- (+ (/ 1 (sqrt 2)) (* 1/24 (/ (pow th 4) (sqrt 2)))) (* 1/2 (/ (pow th 2) (sqrt 2)))) |
| 98.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)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.2b
Found 2 expressions with local error:
| 0.4b | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2)) |
| 0.4b | (* (cos th) (fma a1 a1 (* a2 a2))) |
2 calls. Slowest were:
| 14.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2)) |
| 8.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
2 calls. Slowest were:
| 187.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2)) |
| 115.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
30 calls. Slowest were:
| 374.0ms | (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) |
| 97.0ms | (+ (/ (* (pow a1 2) (cos th)) (sqrt 2)) (/ (* (cos th) (pow a2 2)) (sqrt 2))) |
| 87.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))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0.2b
Found 3 expressions with local error:
| 0.4b | (* (cos th) (fma a1 a1 (* a2 a2))) |
| 0.3b | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.2b | (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
3 calls. Slowest were:
| 26.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)))) |
| 7.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
3 calls. Slowest were:
| 869.0ms | (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 180.0ms | (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 113.0ms | (* (cos th) (fma a1 a1 (* a2 a2))) |
112 calls. Slowest were:
| 508.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)) |
| 470.0ms | (* (* (* (cos th) (cos th)) (cos th)) (* (* (fma a1 a1 (* a2 a2)) (fma a1 a1 (* a2 a2))) (fma a1 a1 (* a2 a2)))) |
| 437.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))) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 0.2b
Found 3 expressions with local error:
| 0.6b | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.5b | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (fma a1 a1 (* a2 a2))) |
| 0.1b | (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
3 calls. Slowest were:
| 19.0ms | (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 17.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (fma a1 a1 (* a2 a2))) |
| 6.0ms | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
3 calls. Slowest were:
| 483.0ms | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 172.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (fma a1 a1 (* a2 a2))) |
| 54.0ms | (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
185 calls. Slowest were:
| 432.0ms | (+ (- (- (log (cos th)) (log (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (log (cbrt (sqrt 2)))) (log (fma a1 a1 (* a2 a2)))) |
| 407.0ms | (/ (/ (* (* (cos th) (cos th)) (cos th)) (* (* (* (cbrt (sqrt 2)) (cbrt (sqrt 2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (sqrt 2)) |
| 353.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (fma a1 a1 (* a2 a2))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.1b and baseline of 0.5b