


Bits error versus a1



Bits error versus a2



Bits error versus th
Results
Initial program 0.5
rmApplied add-sqr-sqrt0.5
Applied associate-/r*0.5
rmApplied add-cube-cbrt0.5
Applied sqrt-prod0.6
Applied *-un-lft-identity0.6
Applied sqrt-prod0.6
Applied *-un-lft-identity0.6
Applied times-frac0.6
Applied times-frac0.5
Simplified0.5
rmApplied add-sqr-sqrt0.5
Applied associate-/r*0.5
Final simplification0.5
herbie shell --seed 2019002
(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: 1.2m)Debug log
1 calls. Slowest were:
| 89.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 4 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
4 calls. Slowest were:
| 11.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 11.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 6.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 81.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 79.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 40.0ms | (/ (cos th) (sqrt 2)) |
| 34.0ms | (/ (cos th) (sqrt 2)) |
98 calls. Slowest were:
| 629.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
| 380.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 358.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.7b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
4 calls. Slowest were:
| 15.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 11.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 7.0ms | (/ (cos th) (sqrt (sqrt 2))) |
4 calls. Slowest were:
| 82.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 60.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 58.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 49.0ms | (/ (cos th) (sqrt 2)) |
397 calls. Slowest were:
| 487.0ms | (/ (* (* (/ (cos th) (sqrt (sqrt 2))) (/ (cos th) (sqrt (sqrt 2)))) (/ (cos th) (sqrt (sqrt 2)))) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) |
| 394.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 277.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2)))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.7b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
4 calls. Slowest were:
| 8.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) |
| 6.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 4.0ms | (/ (cos th) (sqrt (sqrt 2))) |
4 calls. Slowest were:
| 420.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) |
| 76.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 73.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 49.0ms | (/ (cos th) (sqrt 2)) |
532 calls. Slowest were:
| 383.0ms | (/ (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (* (* (sqrt (cbrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) (sqrt (cbrt (sqrt 2))))) |
| 351.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 306.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2)))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 0.7b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
4 calls. Slowest were:
| 8.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) |
| 8.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 4.0ms | (/ (cos th) (sqrt (sqrt 2))) |
4 calls. Slowest were:
| 477.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) |
| 69.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 66.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 52.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
831 calls. Slowest were:
| 483.0ms | (/ (* (* (/ (cos th) (sqrt (sqrt 2))) (/ (cos th) (sqrt (sqrt 2)))) (/ (cos th) (sqrt (sqrt 2)))) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) |
| 419.0ms | (/ (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (* (* (sqrt (cbrt (sqrt 2))) (sqrt (cbrt (sqrt 2)))) (sqrt (cbrt (sqrt 2))))) |
| 264.0ms | (/ (/ (* (cbrt (cos th)) (cbrt (cos th))) (* (cbrt (sqrt (sqrt 2))) (cbrt (sqrt (sqrt 2))))) (* (cbrt (sqrt (cbrt (sqrt 2)))) (cbrt (sqrt (cbrt (sqrt 2)))))) |
8 alts after pruning (7 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