Details

Time bar (total: 6.8s)

sample88.0ms

Algorithm
intervals
Results
39.0ms106×body1280valid
23.0ms26×body2560valid
11.0ms50×body640valid
4.0ms27×body320valid
1.0ms34×body80valid
1.0ms13×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 36.8b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

1.4b
(- (tan (+ x eps)) (tan x))
4.6b
(tan (+ x eps))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
tan-quot add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt tan-sum frac-sub add-cbrt-cube
sub-neg flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 25
Calls
2 calls:
9.0ms
(- (tan (+ x eps)) (tan x))
3.0ms
(tan (+ x eps))

series132.0ms

Counts
2 → 6
Calls
2 calls:
84.0ms
(- (tan (+ x eps)) (tan x))
48.0ms
(tan (+ x eps))

simplify75.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (21.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune75.0ms

Filtered
31 candidates to 25 candidates (80.6%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New24731
Fresh000
Picked101
Done000
Total25732

Merged error: 14.6b

Counts
32 → 7

localize13.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))
3.0b
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
27×*-un-lft-identity
22×add-sqr-sqrt
15×add-cube-cbrt
13×times-frac
tan-quot
add-exp-log add-cbrt-cube add-log-exp
pow1
distribute-lft-out
associate-/l*
associate-*r* associate-*l* associate-/r* associate-/l/
flip3-- flip3-+ frac-add associate-/r/ flip-- 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 div-inv distribute-lft-out-- unswap-sqr
Counts
4 → 86
Calls
4 calls:
7.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
4.0ms
(+ (tan x) (tan eps))
5.0ms
(* (tan x) (tan eps))
11.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series716.0ms

Counts
4 → 12
Calls
4 calls:
200.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
87.0ms
(+ (tan x) (tan eps))
87.0ms
(* (tan x) (tan eps))
342.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify44.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
03971050
114321005
25001995

prune248.0ms

Filtered
98 candidates to 74 candidates (75.5%)
Pruning

16 alts after pruning (16 fresh and 0 done)

PrunedKeptTotal
New841498
Fresh426
Picked101
Done000
Total8916105

Merged error: 14.5b

Counts
105 → 16

localize24.0ms

Local error

Found 4 expressions with local error:

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

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
20×add-exp-log add-cbrt-cube
17×add-sqr-sqrt
10×*-un-lft-identity
pow1 add-cube-cbrt
associate-*r* associate-*l* prod-exp cbrt-unprod add-log-exp
cbrt-undiv div-exp
times-frac pow-prod-down cos-mult *-commutative sin-mult difference-of-squares unswap-sqr
tan-quot sub-neg flip3-- frac-2neg diff-log clear-num associate-/r* associate-/r/ frac-sub flip-- div-inv associate-/l/ associate-/l* distribute-lft-out--
Counts
4 → 77
Calls
4 calls:
4.0ms
(* (cos x) (cos eps))
5.0ms
(* (sin x) (sin eps))
8.0ms
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
17.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))) (tan x))

series543.0ms

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

simplify54.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0406926
11897794
25001794

prune285.0ms

Filtered
89 candidates to 61 candidates (68.5%)
Pruning

16 alts after pruning (16 fresh and 0 done)

PrunedKeptTotal
New86389
Fresh21315
Picked101
Done000
Total8916105

Merged error: 14.5b

Counts
105 → 16

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite55.0ms

Algorithm
rewrite-expression-head
Rules
123×times-frac
104×*-un-lft-identity
83×add-sqr-sqrt
67×add-cube-cbrt
23×associate-/r*
19×add-exp-log
16×associate-/r/ distribute-lft-out
15×tan-quot
13×add-cbrt-cube
div-exp
pow1 div-inv
associate-/l* add-log-exp
flip3-+ frac-add flip-+ difference-of-squares
cbrt-undiv
associate-*r* associate-*l*
rec-exp flip3-- frac-2neg 1-exp clear-num flip-- associate-/l/ distribute-lft-out--
frac-times sub-neg pow-flip diff-log div-sub associate-*r/ pow-prod-down associate-*l/ prod-exp *-commutative frac-sub cbrt-unprod inv-pow unswap-sqr
Counts
4 → 178
Calls
4 calls:
5.0ms
(* (tan x) (tan eps))
8.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
10.0ms
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
25.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

series950.0ms

Counts
4 → 12
Calls
4 calls:
93.0ms
(* (tan x) (tan eps))
271.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
226.0ms
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
360.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

simplify86.0ms

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
07032793
132942509
250012506

prune314.0ms

Filtered
190 candidates to 105 candidates (55.3%)
Pruning

19 alts after pruning (19 fresh and 0 done)

PrunedKeptTotal
New1828190
Fresh41115
Picked101
Done000
Total18719206

Merged error: 14.4b

Counts
206 → 19

regimes174.0ms

Accuracy

88.3% (0.8b remaining)

Error of 14.7b against oracle of 13.9b and baseline of 21.0b

bsearch125.0ms

Steps
ItersRangePoint
7
6.36136280187789e-24
8.2289824352113225e-22
9.19032739794849e-24
10
-7.66540900750845e-16
-4.646653718895944e-33
-6.149362912317085e-28

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05350
15350

end0.0ms

sample2.7s

Algorithm
intervals
Results
1.3s3319×body1280valid
531.0ms603×body2560valid
420.0ms1839×body640valid
114.0ms771×body320valid
56.0ms1104×body80valid
37.0ms364×body160valid