


Bits error versus kx



Bits error versus ky



Bits error versus th
Results
Initial program 12.1
Simplified10.8
rmApplied *-un-lft-identity10.8
Applied times-frac8.5
Simplified8.5
Final simplification8.5
herbie shell --seed 2019016 +o rules:numerics
(FPCore (kx ky th)
:name "Toniolo and Linder, Equation (3b), real"
(* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)))
Time bar (total: 30.7s)Debug log
| 256× | (pre true 80) |
| 93× | (body real 1280) |
| 82× | (body real 80) |
| 53× | (body real 640) |
| 17× | (body real 320) |
| 11× | (body real 160) |
| 488.0ms | (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 9.6b
Found 3 expressions with local error:
| 1.9b | (/ (* (sin th) (sin ky)) (hypot (sin kx) (sin ky))) |
| 0.2b | (* (sin th) (sin ky)) |
| 0.1b | (hypot (sin kx) (sin ky)) |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 5× | pow1 |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | times-frac |
| 3× | associate-/r* |
| 3× | expm1-log1p-u |
| 2× | sin-mult |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | associate-/l/ |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | hypot-udef |
| 8.0ms | (/ (* (sin th) (sin ky)) (hypot (sin kx) (sin ky))) |
| 4.0ms | (* (sin th) (sin ky)) |
| 0.0ms | (hypot (sin kx) (sin ky)) |
| 286.0ms | (/ (* (sin th) (sin ky)) (hypot (sin kx) (sin ky))) |
| 162.0ms | (hypot (sin kx) (sin ky)) |
| 61.0ms | (* (sin th) (sin ky)) |
| 569.0ms | (/ (* (* (* (sin th) (sin th)) (sin th)) (* (* (sin ky) (sin ky)) (sin ky))) (* (* (hypot (sin kx) (sin ky)) (hypot (sin kx) (sin ky))) (hypot (sin kx) (sin ky)))) |
| 567.0ms | (/ (* (* (* (sin th) (sin ky)) (* (sin th) (sin ky))) (* (sin th) (sin ky))) (* (* (hypot (sin kx) (sin ky)) (hypot (sin kx) (sin ky))) (hypot (sin kx) (sin ky)))) |
| 358.0ms | (- (+ (* 1/12 (* (pow kx 2) ky)) ky) (* 1/6 (pow ky 3))) |
| 57.0ms | (* (* (* (sin th) (sin th)) (sin th)) (* (* (sin ky) (sin ky)) (sin ky))) |
| 39.0ms | (* 1/6 (* kx (* ky th))) |
14 alts after pruning (14 fresh and 0 done)
Merged error: 8.9b
Found 3 expressions with local error:
| 0.2b | (* (sin th) (/ (sin ky) (hypot (sin kx) (sin ky)))) |
| 0.2b | (/ (sin ky) (hypot (sin kx) (sin ky))) |
| 0.1b | (hypot (sin kx) (sin ky)) |
| 19× | add-cube-cbrt |
| 19× | *-un-lft-identity |
| 19× | add-sqr-sqrt |
| 18× | times-frac |
| 13× | associate-*r* |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 5× | pow1 |
| 3× | add-log-exp |
| 3× | associate-/l* |
| 3× | log1p-expm1-u |
| 3× | associate-*l* |
| 3× | associate-/r* |
| 3× | expm1-log1p-u |
| 2× | div-inv |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | pow-prod-down |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | hypot-udef |
| 11.0ms | (* (sin th) (/ (sin ky) (hypot (sin kx) (sin ky)))) |
| 7.0ms | (/ (sin ky) (hypot (sin kx) (sin ky))) |
| 0.0ms | (hypot (sin kx) (sin ky)) |
| 307.0ms | (* (sin th) (/ (sin ky) (hypot (sin kx) (sin ky)))) |
| 198.0ms | (/ (sin ky) (hypot (sin kx) (sin ky))) |
| 138.0ms | (hypot (sin kx) (sin ky)) |
| 462.0ms | (* (* (* (sin th) (sin th)) (sin th)) (/ (* (* (sin ky) (sin ky)) (sin ky)) (* (* (hypot (sin kx) (sin ky)) (hypot (sin kx) (sin ky))) (hypot (sin kx) (sin ky))))) |
| 409.0ms | (- (+ (* 1/12 (* (pow kx 2) ky)) ky) (* 1/6 (pow ky 3))) |
| 160.0ms | (- (+ (* 1/6 (* kx ky)) (* 7/360 (* (pow kx 3) ky))) (* 71/720 (* kx (pow ky 3)))) |
| 140.0ms | (* (* (* (sin th) (sin th)) (sin th)) (* (* (/ (sin ky) (hypot (sin kx) (sin ky))) (/ (sin ky) (hypot (sin kx) (sin ky)))) (/ (sin ky) (hypot (sin kx) (sin ky))))) |
| 100.0ms | (/ (* (* (sin ky) (sin ky)) (sin ky)) (* (* (hypot (sin kx) (sin ky)) (hypot (sin kx) (sin ky))) (hypot (sin kx) (sin ky)))) |
20 alts after pruning (19 fresh and 1 done)
Merged error: 8.8b
Found 4 expressions with local error:
| 0.4b | (/ (sin ky) (sqrt (hypot (sin kx) (sin ky)))) |
| 0.3b | (* (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) (/ (sin ky) (sqrt (hypot (sin kx) (sin ky))))) |
| 0.3b | (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) |
| 0.1b | (sqrt (hypot (sin kx) (sin ky))) |
| 72× | times-frac |
| 62× | add-sqr-sqrt |
| 61× | add-cube-cbrt |
| 61× | *-un-lft-identity |
| 45× | sqrt-prod |
| 22× | associate-*l* |
| 22× | associate-*r* |
| 20× | add-exp-log |
| 20× | add-cbrt-cube |
| 12× | associate-/r* |
| 6× | associate-/l* |
| 6× | div-exp |
| 6× | cbrt-undiv |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | div-inv |
| 4× | log1p-expm1-u |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | expm1-log1p-u |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 1× | frac-times |
| 8.0ms | (* (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) (/ (sin ky) (sqrt (hypot (sin kx) (sin ky))))) |
| 6.0ms | (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) |
| 4.0ms | (/ (sin ky) (sqrt (hypot (sin kx) (sin ky)))) |
| 2.0ms | (sqrt (hypot (sin kx) (sin ky))) |
| 237.0ms | (* (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) (/ (sin ky) (sqrt (hypot (sin kx) (sin ky))))) |
| 212.0ms | (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) |
| 196.0ms | (/ (sin ky) (sqrt (hypot (sin kx) (sin ky)))) |
| 150.0ms | (sqrt (hypot (sin kx) (sin ky))) |
| 493.0ms | (* (* (* (/ (sin th) (sqrt (hypot (sin kx) (sin ky)))) (/ (sin th) (sqrt (hypot (sin kx) (sin ky))))) (/ (sin th) (sqrt (hypot (sin kx) (sin ky))))) (* (* (/ (sin ky) (sqrt (hypot (sin kx) (sin ky)))) (/ (sin ky) (sqrt (hypot (sin kx) (sin ky))))) (/ (sin ky) (sqrt (hypot (sin kx) (sin ky)))))) |
| 419.0ms | (+ (- (log (sin th)) (log (sqrt (hypot (sin kx) (sin ky))))) (- (log (sin ky)) (log (sqrt (hypot (sin kx) (sin ky)))))) |
| 262.0ms | (+ (- (log (sin th)) (log (sqrt (hypot (sin kx) (sin ky))))) (log (/ (sin ky) (sqrt (hypot (sin kx) (sin ky)))))) |
| 182.0ms | (* (/ (* (* (sin th) (sin th)) (sin th)) (* (* (sqrt (hypot (sin kx) (sin ky))) (sqrt (hypot (sin kx) (sin ky)))) (sqrt (hypot (sin kx) (sin ky))))) (/ (* (* (sin ky) (sin ky)) (sin ky)) (* (* (sqrt (hypot (sin kx) (sin ky))) (sqrt (hypot (sin kx) (sin ky)))) (sqrt (hypot (sin kx) (sin ky)))))) |
| 170.0ms | (/ (* (* (sin ky) (sin ky)) (sin ky)) (* (* (sqrt (hypot (sin kx) (sin ky))) (sqrt (hypot (sin kx) (sin ky)))) (sqrt (hypot (sin kx) (sin ky))))) |
22 alts after pruning (21 fresh and 1 done)
Merged error: 8.8b
Found 4 expressions with local error:
| 0.5b | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 0.5b | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 0.5b | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 0.5b | (* (cbrt (sqrt (hypot (sin kx) (sin ky)))) (cbrt (sqrt (hypot (sin kx) (sin ky))))) |
| 30× | cbrt-prod |
| 16× | add-cube-cbrt |
| 16× | *-un-lft-identity |
| 16× | add-sqr-sqrt |
| 15× | sqrt-prod |
| 9× | associate-*l* |
| 9× | associate-*r* |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 13.0ms | (* (cbrt (sqrt (hypot (sin kx) (sin ky)))) (cbrt (sqrt (hypot (sin kx) (sin ky))))) |
| 2.0ms | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 2.0ms | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 2.0ms | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 202.0ms | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 202.0ms | (* (cbrt (sqrt (hypot (sin kx) (sin ky)))) (cbrt (sqrt (hypot (sin kx) (sin ky))))) |
| 183.0ms | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 171.0ms | (cbrt (sqrt (hypot (sin kx) (sin ky)))) |
| 157.0ms | (- (+ (* 1/6 (* (pow kx 2) (pow (/ 1 (pow ky 5)) 1/3))) (pow ky 1/3)) (* 1/18 (pow (pow ky 7) 1/3))) |
| 131.0ms | (- (+ (* 1/12 (* (pow kx 2) (pow (/ 1 (pow ky 11)) 1/6))) (pow ky 1/6)) (* 1/36 (pow (pow ky 13) 1/6))) |
| 107.0ms | (- (+ (* 1/12 (* (pow kx 2) (pow (/ 1 (pow ky 11)) 1/6))) (pow ky 1/6)) (* 1/36 (pow (pow ky 13) 1/6))) |
| 105.0ms | (- (+ (* 1/12 (* (pow kx 2) (pow (/ 1 (pow ky 11)) 1/6))) (pow ky 1/6)) (* 1/36 (pow (pow ky 13) 1/6))) |
| 13.0ms | (pow (sqrt (+ (pow (sin ky) 2) (pow (sin kx) 2))) 1/3) |
23 alts after pruning (22 fresh and 1 done)
Merged error: 8.8b
0% (0.1b remaining)
Error of 8.5b against oracle of 8.4b and baseline of 8.5b
| 8000× | (pre true 80) |
| 2775× | (body real 1280) |
| 2295× | (body real 80) |
| 1777× | (body real 640) |
| 799× | (body real 320) |
| 354× | (body real 160) |