



Bits error versus x




Bits error versus eps
Results
| Original | 37.0 |
|---|---|
| Target | 15.0 |
| Herbie | 0.4 |
Initial program 37.0
rmApplied tan-sum21.9
rmApplied tan-quot22.0
Applied frac-sub22.1
Taylor expanded around -inf 0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019016
(FPCore (x eps)
:name "2tan (problem 3.3.2)"
:herbie-target
(/ (sin eps) (* (cos x) (cos (+ x eps))))
(- (tan (+ x eps)) (tan x)))
Time bar (total: 36.7s)Debug log
| 256× | (pre true 80) |
| 115× | (body real 1280) |
| 60× | (body real 640) |
| 27× | (body real 2560) |
| 25× | (body real 80) |
| 17× | (body real 320) |
| 12× | (body real 160) |
| 7.0ms | (- (tan (+ x eps)) (tan x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 38.3b
Found 2 expressions with local error:
| 3.9b | (tan (+ x eps)) |
| 1.6b | (- (tan (+ x eps)) (tan x)) |
| 4× | add-log-exp |
| 4× | tan-quot |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 2× | add-cube-cbrt |
| 2× | frac-sub |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | tan-sum |
| 2× | pow1 |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 5.0ms | (- (tan (+ x eps)) (tan x)) |
| 2.0ms | (tan (+ x eps)) |
| 107.0ms | (- (tan (+ x eps)) (tan x)) |
| 76.0ms | (tan (+ x eps)) |
| 226.0ms | (- (* (+ (tan x) (tan eps)) (cos x)) (* (- 1 (* (tan x) (tan eps))) (sin x))) |
| 157.0ms | (+ (* x (pow eps 2)) (+ eps (* (pow x 2) eps))) |
| 133.0ms | (* (- 1 (* (tan x) (tan eps))) (cos x)) |
| 32.0ms | (+ x (+ (* 1/3 (pow x 3)) eps)) |
| 24.0ms | (/ (exp (tan (+ x eps))) (exp (tan x))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 17.2b
Found 4 expressions with local error:
| 2.9b | (- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x)) |
| 0.2b | (* (tan x) (tan eps)) |
| 0.1b | (+ (tan x) (tan eps)) |
| 0.1b | (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) |
| 27× | *-un-lft-identity |
| 20× | add-sqr-sqrt |
| 15× | add-cube-cbrt |
| 13× | times-frac |
| 9× | tan-quot |
| 8× | add-log-exp |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 6× | pow1 |
| 5× | distribute-lft-out |
| 4× | associate-/l* |
| 3× | associate-/l/ |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | difference-of-squares |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | frac-add |
| 2× | flip3-- |
| 2× | flip3-+ |
| 1× | distribute-lft-out-- |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | div-exp |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | frac-times |
| 28.0ms | (- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x)) |
| 12.0ms | (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) |
| 6.0ms | (+ (tan x) (tan eps)) |
| 4.0ms | (* (tan x) (tan eps)) |
| 410.0ms | (- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x)) |
| 254.0ms | (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) |
| 135.0ms | (* (tan x) (tan eps)) |
| 96.0ms | (+ (tan x) (tan eps)) |
| 316.0ms | (+ (* 1/3 (* (pow x 3) eps)) (+ (* 1/3 (* x (pow eps 3))) (* x eps))) |
| 269.0ms | (/ (* (* (+ (tan x) (tan eps)) (+ (tan x) (tan eps))) (+ (tan x) (tan eps))) (* (* (- 1 (* (tan x) (tan eps))) (- 1 (* (tan x) (tan eps)))) (- 1 (* (tan x) (tan eps))))) |
| 262.0ms | (- (+ (/ (sin eps) (* (cos eps) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))) (/ (sin x) (* (cos x) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))))) (/ (sin x) (cos x))) |
| 261.0ms | (- (+ (/ (sin eps) (* (cos eps) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))) (/ (sin x) (* (cos x) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))))) (/ (sin x) (cos x))) |
| 215.0ms | (- (* (+ (tan x) (tan eps)) (cos x)) (* (- 1 (* (tan x) (tan eps))) (sin x))) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 17.0b
Found 4 expressions with local error:
| 7.0b | (- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x)) |
| 0.2b | (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))) |
| 0.2b | (* (tan x) (tan eps)) |
| 0.2b | (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) |
| 40× | *-un-lft-identity |
| 25× | add-sqr-sqrt |
| 24× | times-frac |
| 23× | add-cube-cbrt |
| 23× | associate-/r* |
| 11× | add-exp-log |
| 9× | tan-quot |
| 8× | add-cbrt-cube |
| 7× | distribute-lft-out |
| 7× | associate-/r/ |
| 7× | pow1 |
| 6× | add-log-exp |
| 4× | div-inv |
| 3× | associate-/l* |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 2× | associate-/l/ |
| 2× | distribute-lft-out-- |
| 2× | flip-- |
| 2× | flip-+ |
| 2× | frac-add |
| 2× | div-exp |
| 2× | flip3-- |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | difference-of-squares |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | cbrt-unprod |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | div-sub |
| 1× | diff-log |
| 1× | sub-neg |
| 1× | cbrt-undiv |
| 1× | frac-times |
| 13.0ms | (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))) |
| 8.0ms | (- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x)) |
| 4.0ms | (* (tan x) (tan eps)) |
| 4.0ms | (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) |
| 406.0ms | (- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x)) |
| 354.0ms | (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))) |
| 250.0ms | (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) |
| 87.0ms | (* (tan x) (tan eps)) |
| 353.0ms | (/ (* (* (- 1 (* (tan x) (tan eps))) (- 1 (* (tan x) (tan eps)))) (- 1 (* (tan x) (tan eps)))) (* (* (+ (tan x) (tan eps)) (+ (tan x) (tan eps))) (+ (tan x) (tan eps)))) |
| 322.0ms | (/ (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (+ (/ (sin eps) (cos eps)) (/ (sin x) (cos x)))) |
| 305.0ms | (- (+ (/ (sin eps) (* (cos eps) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))) (/ (sin x) (* (cos x) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))))) (/ (sin x) (cos x))) |
| 295.0ms | (- (+ (/ (sin eps) (* (cos eps) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))) (/ (sin x) (* (cos x) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))))) (/ (sin x) (cos x))) |
| 261.0ms | (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) |
16 alts after pruning (16 fresh and 0 done)
Merged error: 17.0b
Found 4 expressions with local error:
| 8.0b | (- (* (+ (tan x) (tan eps)) (cos x)) (* (- 1 (* (tan x) (tan eps))) (sin x))) |
| 0.2b | (* (tan x) (tan eps)) |
| 0.2b | (* (tan x) (tan eps)) |
| 0.2b | (* (+ (tan x) (tan eps)) (cos x)) |
| 17× | associate-*l/ |
| 14× | tan-quot |
| 12× | *-un-lft-identity |
| 10× | add-cube-cbrt |
| 10× | add-exp-log |
| 10× | associate-*l* |
| 10× | add-cbrt-cube |
| 10× | pow1 |
| 10× | add-sqr-sqrt |
| 9× | associate-*r* |
| 6× | add-log-exp |
| 6× | frac-sub |
| 4× | flip-- |
| 4× | flip3-- |
| 3× | flip-+ |
| 3× | cbrt-unprod |
| 3× | *-commutative |
| 3× | prod-exp |
| 3× | frac-add |
| 3× | pow-prod-down |
| 3× | flip3-+ |
| 2× | associate-*r/ |
| 2× | frac-times |
| 1× | distribute-lft-out |
| 1× | diff-log |
| 1× | sub-neg |
| 21.0ms | (- (* (+ (tan x) (tan eps)) (cos x)) (* (- 1 (* (tan x) (tan eps))) (sin x))) |
| 15.0ms | (* (+ (tan x) (tan eps)) (cos x)) |
| 13.0ms | (* (tan x) (tan eps)) |
| 8.0ms | (* (tan x) (tan eps)) |
| 210.0ms | (- (* (+ (tan x) (tan eps)) (cos x)) (* (- 1 (* (tan x) (tan eps))) (sin x))) |
| 131.0ms | (* (+ (tan x) (tan eps)) (cos x)) |
| 127.0ms | (* (tan x) (tan eps)) |
| 96.0ms | (* (tan x) (tan eps)) |
| 402.0ms | (* (* (cos x) (cos eps)) (+ (* 1 1) (+ (* (* (tan x) (tan eps)) (* (tan x) (tan eps))) (* 1 (* (tan x) (tan eps)))))) |
| 391.0ms | (* (- (* (tan x) (tan x)) (* (tan eps) (tan eps))) (cos x)) |
| 382.0ms | (* (* (* (+ (tan x) (tan eps)) (+ (tan x) (tan eps))) (+ (tan x) (tan eps))) (* (* (cos x) (cos x)) (cos x))) |
| 334.0ms | (+ (* 1/3 (* (pow x 3) eps)) (+ (* 1/3 (* x (pow eps 3))) (* x eps))) |
| 325.0ms | (+ (* 1/3 (* (pow x 3) eps)) (+ (* 1/3 (* x (pow eps 3))) (* x eps))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.2b
0% (0.3b remaining)
Error of 0.4b against oracle of 0.2b and baseline of 0.4b
| 8000× | (pre true 80) |
| 3314× | (body real 1280) |
| 1793× | (body real 640) |
| 1090× | (body real 80) |
| 769× | (body real 320) |
| 664× | (body real 2560) |
| 370× | (body real 160) |