Details

Time bar (total: 10.2s)

sample164.0ms

Algorithm
intervals
Results
77.0ms106×body1280valid
41.0ms25×body2560valid
25.0ms61×body640valid
5.0ms20×body320valid
3.0ms32×body80valid
2.0ms12×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.5b

localize9.0ms

Local error

Found 2 expressions with local error:

1.1b
(- (tan (+ x eps)) (tan x))
3.5b
(tan (+ x eps))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
tan-quot add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u tan-sum frac-sub add-cbrt-cube log1p-expm1-u
sub-neg flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 41
Calls
2 calls:
7.0ms
(- (tan (+ x eps)) (tan x))
4.0ms
(tan (+ x eps))

series151.0ms

Counts
2 → 6
Calls
2 calls:
93.0ms
(- (tan (+ x eps)) (tan x))
57.0ms
(tan (+ x eps))

simplify77.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (72.0ms)

IterNodesCost
0192420
1538319
22593310
35001255

prune119.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 14.5b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
0.1b
(+ (tan x) (tan eps))
0.2b
(* (tan x) (tan eps))
1.4b
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
102×*-un-lft-identity
73×add-sqr-sqrt
66×add-cube-cbrt
61×times-frac
54×prod-diff
18×fma-neg
17×distribute-lft-out
10×associate-/r/
tan-quot
add-exp-log add-cbrt-cube add-log-exp
pow1 flip3-- flip--
div-inv
expm1-log1p-u log1p-expm1-u associate-/l*
fma-def associate-*r* associate-*l* associate-/r* associate-/l/
flip3-+ frac-add flip-+ difference-of-squares
cbrt-undiv +-commutative frac-times sub-neg frac-2neg diff-log associate-*r/ div-exp pow-prod-down associate-*l/ prod-exp clear-num sum-log *-commutative frac-sub cbrt-unprod distribute-lft-out-- unswap-sqr
Counts
4 → 169
Calls
4 calls:
9.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
5.0ms
(+ (tan x) (tan eps))
5.0ms
(* (tan x) (tan eps))
15.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series764.0ms

Counts
4 → 12
Calls
4 calls:
220.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
93.0ms
(+ (tan x) (tan eps))
92.0ms
(* (tan x) (tan eps))
359.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify73.0ms

Algorithm
egg-herbie
Counts
181 → 181
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
05592915
120542366
250012345

prune430.0ms

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 14.3b

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(+ (tan x) (tan eps))
0.1b
(/ (* (tan x) (sin eps)) (cos eps))
0.2b
(* (tan x) (sin eps))
1.4b
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (tan x))

rewrite54.0ms

Algorithm
rewrite-expression-head
Rules
183×*-un-lft-identity
138×add-sqr-sqrt
100×times-frac
90×prod-diff
83×add-cube-cbrt
34×difference-of-squares
30×fma-neg
25×distribute-lft-out
17×distribute-lft-out--
11×add-exp-log add-cbrt-cube
associate-/r/ add-log-exp
pow1
tan-quot flip3-- flip-- div-inv
expm1-log1p-u log1p-expm1-u
fma-def associate-*r* associate-*l* associate-/r*
cbrt-undiv div-exp associate-*l/ prod-exp cbrt-unprod
+-commutative sub-neg frac-2neg flip3-+ diff-log pow-prod-down frac-add clear-num sum-log *-commutative frac-sub flip-+ associate-/l/ associate-/l* unswap-sqr
Counts
4 → 201
Calls
4 calls:
5.0ms
(+ (tan x) (tan eps))
6.0ms
(/ (* (tan x) (sin eps)) (cos eps))
5.0ms
(* (tan x) (sin eps))
27.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (tan x))

series830.0ms

Counts
4 → 12
Calls
4 calls:
90.0ms
(+ (tan x) (tan eps))
94.0ms
(/ (* (tan x) (sin eps)) (cos eps))
67.0ms
(* (tan x) (sin eps))
578.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (tan x))

simplify90.0ms

Algorithm
egg-herbie
Counts
213 → 213
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
06704177
124933280
250013241

prune493.0ms

Pruning

18 alts after pruning (18 fresh and 0 done)

Merged error: 14.3b

localize21.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (tan x) (sin eps))
0.2b
(/ (cos eps) (* (tan x) (sin eps)))
0.5b
(/ 1 (/ (cos eps) (* (tan x) (sin eps))))
1.4b
(- (/ (+ (tan x) (tan eps)) (- 1 (/ 1 (/ (cos eps) (* (tan x) (sin eps)))))) (tan x))

rewrite84.0ms

Algorithm
rewrite-expression-head
Rules
357×*-un-lft-identity
322×add-sqr-sqrt
280×times-frac
150×prod-diff
139×add-cube-cbrt
98×difference-of-squares
50×fma-neg
44×distribute-lft-out
33×distribute-lft-out--
32×add-exp-log
26×div-inv
20×add-cbrt-cube
14×div-exp associate-/r/
associate-/r*
tan-quot pow1 cbrt-undiv
associate-*l/ associate-/l* add-log-exp
flip3-- prod-exp flip--
expm1-log1p-u log1p-expm1-u
rec-exp 1-exp associate-*r* associate-*l* cbrt-unprod
frac-2neg clear-num
sub-neg pow-flip diff-log pow-prod-down *-commutative frac-sub inv-pow unswap-sqr
Counts
4 → 325
Calls
4 calls:
5.0ms
(* (tan x) (sin eps))
6.0ms
(/ (cos eps) (* (tan x) (sin eps)))
8.0ms
(/ 1 (/ (cos eps) (* (tan x) (sin eps))))
37.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ 1 (/ (cos eps) (* (tan x) (sin eps)))))) (tan x))

series632.0ms

Counts
4 → 12
Calls
4 calls:
68.0ms
(* (tan x) (sin eps))
101.0ms
(/ (cos eps) (* (tan x) (sin eps)))
101.0ms
(/ 1 (/ (cos eps) (* (tan x) (sin eps))))
361.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ 1 (/ (cos eps) (* (tan x) (sin eps)))))) (tan x))

simplify117.0ms

Algorithm
egg-herbie
Counts
337 → 337
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
09317278
136435680
250025611

prune603.0ms

Pruning

17 alts after pruning (17 fresh and 0 done)

Merged error: 14.3b

regimes168.0ms

Accuracy

72.1% (2.1b remaining)

Error of 15.8b against oracle of 13.8b and baseline of 21.1b

bsearch250.0ms

Steps
ItersRangePoint
9
4.017695445394683e-173
5.816336440788529e-167
5.748527172026931e-167
10
-2.3022776580077488e-90
-1.7535355178555737e-102
-1.4968426811240258e-90

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03730
13730

end0.0ms

sample4.9s

Algorithm
intervals
Results
2.5s3292×body1280valid
1.1s636×body2560valid
751.0ms1787×body640valid
234.0ms805×body320valid
93.0ms1118×body80valid
65.0ms362×body160valid