


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 associate-*l/0.5
rmApplied associate-*r*0.5
rmApplied add-sqr-sqrt0.5
Applied *-un-lft-identity0.5
Applied times-frac0.4
Applied associate-*l*0.4
Final simplification0.4
herbie shell --seed 2019010
(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.1m)Debug log
| 97.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)) (* a2 a2)) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 36× | times-frac |
| 34× | add-cube-cbrt |
| 34× | *-un-lft-identity |
| 34× | add-sqr-sqrt |
| 26× | associate-*l* |
| 18× | add-exp-log |
| 18× | add-cbrt-cube |
| 8× | pow1 |
| 6× | associate-/l* |
| 6× | associate-/r* |
| 4× | add-log-exp |
| 4× | div-inv |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 2× | *-commutative |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 2× | associate-*r* |
| 2× | frac-2neg |
| 2× | clear-num |
| 12.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 12.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 6.0ms | (/ (cos th) (sqrt 2)) |
| 3.0ms | (/ (cos th) (sqrt 2)) |
| 93.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 80.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 34.0ms | (/ (cos th) (sqrt 2)) |
| 32.0ms | (/ (cos th) (sqrt 2)) |
| 454.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 453.0ms | (+ (- (log (cos th)) (log (sqrt 2))) (log (* a1 a1))) |
| 334.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2)))) |
| 333.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
| 307.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
15 alts after pruning (15 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)) (* a2 a2)) |
| 294× | times-frac |
| 171× | add-cube-cbrt |
| 171× | *-un-lft-identity |
| 171× | add-sqr-sqrt |
| 144× | sqrt-prod |
| 28× | associate-/l* |
| 18× | add-exp-log |
| 18× | add-cbrt-cube |
| 15× | associate-/r* |
| 13× | associate-*l* |
| 11× | div-inv |
| 6× | div-exp |
| 6× | cbrt-undiv |
| 6× | pow1 |
| 4× | add-log-exp |
| 3× | frac-2neg |
| 3× | clear-num |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 1× | associate-/l/ |
| 1× | *-commutative |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | associate-*r* |
| 11.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 6.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 4.0ms | (/ (cos th) (sqrt 2)) |
| 4.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 105.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 73.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 41.0ms | (/ (cos th) (sqrt 2)) |
| 32.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 419.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)))) |
| 412.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
| 335.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
| 253.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 225.0ms | (/ (/ (* (cbrt (cos th)) (cbrt (cos th))) (* (cbrt (sqrt (sqrt 2))) (cbrt (sqrt (sqrt 2))))) 1) |
14 alts after pruning (14 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
| 0.3b | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a1 a1)) |
| 0.3b | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 519× | times-frac |
| 281× | add-cube-cbrt |
| 281× | *-un-lft-identity |
| 281× | add-sqr-sqrt |
| 264× | sqrt-prod |
| 136× | associate-*l* |
| 26× | associate-/l* |
| 25× | add-exp-log |
| 25× | add-cbrt-cube |
| 17× | div-inv |
| 15× | associate-/r* |
| 9× | div-exp |
| 9× | cbrt-undiv |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 3× | frac-2neg |
| 3× | clear-num |
| 1× | associate-/l/ |
| 1× | *-commutative |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | associate-*r* |
| 12.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 11.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a1 a1)) |
| 7.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 4.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 107.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 92.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a1 a1)) |
| 70.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 51.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 525.0ms | (* (* (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 471.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)))) |
| 329.0ms | (+ (log (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (log (* a1 a1))) |
| 309.0ms | (+ (- (- (log (cos th)) (log (sqrt (sqrt 2)))) (log (sqrt (sqrt 2)))) (log (* a1 a1))) |
| 275.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
| 0.4b | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a1) |
| 0.3b | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 519× | times-frac |
| 281× | add-cube-cbrt |
| 281× | *-un-lft-identity |
| 281× | add-sqr-sqrt |
| 264× | sqrt-prod |
| 136× | associate-*l* |
| 26× | associate-/l* |
| 17× | div-inv |
| 16× | add-exp-log |
| 16× | add-cbrt-cube |
| 15× | associate-/r* |
| 6× | div-exp |
| 6× | cbrt-undiv |
| 4× | add-log-exp |
| 4× | pow1 |
| 3× | frac-2neg |
| 3× | clear-num |
| 1× | associate-/l/ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 23.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a1) |
| 15.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 13.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 7.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 107.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 91.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a1) |
| 74.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 37.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 436.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)))) |
| 361.0ms | (- (/ a1 (sqrt 2)) (* 1/2 (/ (* a1 (pow th 2)) (sqrt 2)))) |
| 284.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
| 242.0ms | (/ (/ (* (cbrt (cos th)) (cbrt (cos th))) (* (cbrt (sqrt (sqrt 2))) (cbrt (sqrt (sqrt 2))))) (sqrt 1)) |
| 230.0ms | (/ (/ (* (cbrt (cos th)) (cbrt (cos th))) (* (cbrt (sqrt (sqrt 2))) (cbrt (sqrt (sqrt 2))))) (sqrt 1)) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.4b against oracle of 0.0b and baseline of 0.4b