


Bits error versus a1



Bits error versus a2



Bits error versus th
Results
Initial program 0.5
Simplified0.5
rmApplied associate-*l/0.5
rmApplied add-cube-cbrt0.5
Applied associate-/r*0.5
Final simplification0.5
herbie shell --seed 2019008
(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: 33.8s)Debug log
1 calls. Slowest were:
| 101.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)) (+ (* a1 a1) (* a2 a2))) |
| 0.0b | (+ (* a1 a1) (* a2 a2)) |
3 calls. Slowest were:
| 10.0ms | (* (/ (cos th) (sqrt 2)) (+ (* a1 a1) (* a2 a2))) |
| 3.0ms | (/ (cos th) (sqrt 2)) |
| 2.0ms | (+ (* a1 a1) (* a2 a2)) |
3 calls. Slowest were:
| 184.0ms | (* (/ (cos th) (sqrt 2)) (+ (* a1 a1) (* a2 a2))) |
| 35.0ms | (/ (cos th) (sqrt 2)) |
| 25.0ms | (+ (* a1 a1) (* a2 a2)) |
64 calls. Slowest were:
| 427.0ms | (* (cos th) (- (* (* a1 a1) (* a1 a1)) (* (* a2 a2) (* a2 a2)))) |
| 358.0ms | (* (sqrt 2) (- (* a1 a1) (* a2 a2))) |
| 295.0ms | (* (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) (* (* (+ (* a1 a1) (* a2 a2)) (+ (* a1 a1) (* a2 a2))) (+ (* a1 a1) (* a2 a2)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 0.4b | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2)) |
| 0.2b | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
| 0.0b | (+ (* a1 a1) (* a2 a2)) |
3 calls. Slowest were:
| 15.0ms | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2)) |
| 13.0ms | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
| 4.0ms | (+ (* a1 a1) (* a2 a2)) |
3 calls. Slowest were:
| 166.0ms | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2)) |
| 106.0ms | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
| 19.0ms | (+ (* a1 a1) (* a2 a2)) |
38 calls. Slowest were:
| 412.0ms | (* (cos th) (- (* (* a1 a1) (* a1 a1)) (* (* a2 a2) (* a2 a2)))) |
| 205.0ms | (/ (* (* (* (cos th) (cos th)) (cos th)) (* (* (+ (* a1 a1) (* a2 a2)) (+ (* a1 a1) (* a2 a2))) (+ (* a1 a1) (* a2 a2)))) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 175.0ms | (+ (* (* a1 a1) (* a1 a1)) (- (* (* a2 a2) (* a2 a2)) (* (* a1 a1) (* a2 a2)))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.3b | (/ (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 0.2b | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.2b | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
| 0.0b | (+ (* a1 a1) (* a2 a2)) |
4 calls. Slowest were:
| 30.0ms | (/ (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 19.0ms | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 11.0ms | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
4 calls. Slowest were:
| 855.0ms | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 189.0ms | (/ (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 107.0ms | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
| 15.0ms | (+ (* a1 a1) (* a2 a2)) |
120 calls. Slowest were:
| 567.0ms | (/ (* (* (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (sqrt 2)) |
| 428.0ms | (* (cos th) (- (* (* a1 a1) (* a1 a1)) (* (* a2 a2) (* a2 a2)))) |
| 333.0ms | (/ (/ (* (* (* (cos th) (cos th)) (cos th)) (* (* (+ (* a1 a1) (* a2 a2)) (+ (* a1 a1) (* a2 a2))) (+ (* a1 a1) (* a2 a2)))) (* (* (* (cbrt (sqrt 2)) (cbrt (sqrt 2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (sqrt 2)) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 4.7b | (sqrt (+ (* a1 a1) (* a2 a2))) |
| 4.7b | (sqrt (+ (* a1 a1) (* a2 a2))) |
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.4b | (* (/ (cos th) (sqrt 2)) (sqrt (+ (* a1 a1) (* a2 a2)))) |
4 calls. Slowest were:
| 8.0ms | (* (/ (cos th) (sqrt 2)) (sqrt (+ (* a1 a1) (* a2 a2)))) |
| 3.0ms | (/ (cos th) (sqrt 2)) |
| 2.0ms | (sqrt (+ (* a1 a1) (* a2 a2))) |
4 calls. Slowest were:
| 167.0ms | (* (/ (cos th) (sqrt 2)) (sqrt (+ (* a1 a1) (* a2 a2)))) |
| 42.0ms | (/ (cos th) (sqrt 2)) |
| 31.0ms | (sqrt (+ (* a1 a1) (* a2 a2))) |
| 28.0ms | (sqrt (+ (* a1 a1) (* a2 a2))) |
79 calls. Slowest were:
| 486.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (sqrt (+ (* a1 a1) (* a2 a2))) (sqrt (+ (* a1 a1) (* a2 a2)))) (sqrt (+ (* a1 a1) (* a2 a2))))) |
| 250.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 195.0ms | (* (sqrt 2) (sqrt (+ (* (* a1 a1) (* a1 a1)) (- (* (* a2 a2) (* a2 a2)) (* (* a1 a1) (* a2 a2)))))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.1b and baseline of 0.5b