


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 sqrt-prod0.5
Applied *-un-lft-identity0.5
Applied times-frac0.4
Applied associate-*l*0.4
Final simplification0.4
herbie shell --seed 2019010 +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: 1.1m)Debug log
| 76.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× | log1p-expm1-u |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | div-exp |
| 4× | cbrt-undiv |
| 4× | expm1-log1p-u |
| 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)) |
| 7.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
| 6.0ms | (/ (cos th) (sqrt 2)) |
| 79.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 79.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 53.0ms | (/ (cos th) (sqrt 2)) |
| 33.0ms | (/ (cos th) (sqrt 2)) |
| 351.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 332.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
| 289.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2)))) |
| 253.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
| 233.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 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 |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 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* |
| 10.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 6.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 4.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 3.0ms | (/ (cos th) (sqrt 2)) |
| 69.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 52.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 50.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 35.0ms | (/ (cos th) (sqrt 2)) |
| 407.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)))) |
| 399.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
| 333.0ms | (- (+ (sqrt (/ 1 (sqrt 2))) (* 1/24 (* (sqrt (/ 1 (sqrt 2))) (pow th 4)))) (* 1/2 (* (sqrt (/ 1 (sqrt 2))) (pow th 2)))) |
| 292.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
| 264.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
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× | log1p-expm1-u |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | expm1-log1p-u |
| 3× | frac-2neg |
| 3× | clear-num |
| 1× | associate-/l/ |
| 1× | *-commutative |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | associate-*r* |
| 15.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a1 a1)) |
| 15.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 9.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 7.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 74.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 68.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) (* a1 a1)) |
| 51.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 43.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 785.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))) |
| 448.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)))) |
| 344.0ms | (+ (- (- (log (cos th)) (log (sqrt (sqrt 2)))) (log (sqrt (sqrt 2)))) (log (* a1 a1))) |
| 331.0ms | (+ (log (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) (log (* a1 a1))) |
| 318.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 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× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | frac-2neg |
| 3× | clear-num |
| 1× | associate-/l/ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 18.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 15.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a1) |
| 7.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 7.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 102.0ms | (/ (* (cos th) (* a2 a2)) (sqrt 2)) |
| 96.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a1) |
| 86.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 45.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 503.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)))) |
| 408.0ms | (- (+ (sqrt (/ 1 (sqrt 2))) (* 1/24 (* (sqrt (/ 1 (sqrt 2))) (pow th 4)))) (* 1/2 (* (sqrt (/ 1 (sqrt 2))) (pow th 2)))) |
| 355.0ms | (- (/ a1 (sqrt 2)) (* 1/2 (/ (* a1 (pow th 2)) (sqrt 2)))) |
| 274.0ms | (- (/ (pow a2 2) (sqrt 2)) (* 1/2 (/ (* (pow a2 2) (pow th 2)) (sqrt 2)))) |
| 236.0ms | (/ (/ (* (cbrt (cos th)) (cbrt (cos th))) (* (cbrt (sqrt (sqrt 2))) (cbrt (sqrt (sqrt 2))))) 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