Details

Time bar (total: 7.2s)

sample90.0ms

Algorithm
intervals
Results
46.0ms110×body1280valid
16.0ms19×body2560valid
12.0ms53×body640valid
4.0ms25×body320valid
2.0ms20×body160valid
1.0ms29×body80valid

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: 39.6b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

1.5b
(- (tan (+ x eps)) (tan x))
5.2b
(tan (+ x eps))

rewrite11.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:
6.0ms
(- (tan (+ x eps)) (tan x))
4.0ms
(tan (+ x eps))

series140.0ms

Counts
2 → 6
Calls
2 calls:
89.0ms
(- (tan (+ x eps)) (tan x))
50.0ms
(tan (+ x eps))

simplify79.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (22.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune89.0ms

Filtered
31 candidates to 25 candidates (80.6%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New22931
Fresh000
Picked101
Done000
Total23932

Merged error: 14.2b

Counts
32 → 9

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite32.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:
4.0ms
(+ (tan x) (tan eps))
8.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
5.0ms
(* (tan x) (tan eps))
12.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series740.0ms

Counts
4 → 12
Calls
4 calls:
91.0ms
(+ (tan x) (tan eps))
214.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
90.0ms
(* (tan x) (tan eps))
345.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify45.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
03971050
114321005
25001995

prune300.0ms

Filtered
98 candidates to 74 candidates (75.5%)
Pruning

19 alts after pruning (19 fresh and 0 done)

PrunedKeptTotal
New821698
Fresh538
Picked101
Done000
Total8819107

Merged error: 14.1b

Counts
107 → 19

localize23.0ms

Local error

Found 4 expressions with local error:

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

rewrite49.0ms

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

series726.0ms

Counts
4 → 12
Calls
4 calls:
214.0ms
(/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))))
49.0ms
(* (sin x) (sin eps))
96.0ms
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
367.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps))))) (tan x))

simplify65.0ms

Algorithm
egg-herbie
Counts
121 → 121
Iterations

Useful iterations: 1 (13.0ms)

IterNodesCost
05361825
123731688
250011688

prune417.0ms

Filtered
121 candidates to 81 candidates (66.9%)
Pruning

21 alts after pruning (20 fresh and 1 done)

PrunedKeptTotal
New1174121
Fresh21618
Picked011
Done000
Total11921140

Merged error: 14.0b

Counts
140 → 21

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite61.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))))
27.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

series931.0ms

Counts
4 → 12
Calls
4 calls:
93.0ms
(* (tan x) (tan eps))
269.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
214.0ms
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
355.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

simplify83.0ms

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
07032793
132942509
250012506

prune340.0ms

Filtered
190 candidates to 103 candidates (54.2%)
Pruning

20 alts after pruning (19 fresh and 1 done)

PrunedKeptTotal
New18010190
Fresh10919
Picked101
Done011
Total19120211

Merged error: 14.0b

Counts
211 → 20

regimes208.0ms

Accuracy

89.7% (0.7b remaining)

Error of 15.2b against oracle of 14.4b and baseline of 21.5b

bsearch105.0ms

Steps
ItersRangePoint
8
6.3780966821006384e-18
1.0989223242724141e-13
1.2121002027987652e-17
8
-1.073429624027594e-16
-1.8488036648256827e-19
-3.639808888895572e-18

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04636
14636

end0.0ms

sample2.6s

Algorithm
intervals
Results
1.3s3346×body1280valid
537.0ms613×body2560valid
398.0ms1786×body640valid
108.0ms735×body320valid
51.0ms1149×body80valid
36.0ms371×body160valid

Profiling

Loading profile data...