Details

Time bar (total: 2.9s)

sample60.0ms

Algorithm
intervals
Results
30.0ms62×body2560valid
8.0ms35×body1280valid
8.0ms49×body640valid
3.0ms29×body320valid
2.0ms64×body80valid
1.0ms17×body160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0134
1214
2264
3284
4284

prune2.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 33.0b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

1.4b
(- 1.0 (cos x))
16.7b
(/ (- 1.0 (cos x)) (* x x))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt *-un-lft-identity
add-exp-log add-cbrt-cube
times-frac associate-/l*
add-cube-cbrt add-log-exp
distribute-lft-out-- difference-of-squares
pow1 cbrt-undiv flip3-- div-exp flip-- associate-/l/
sub-neg frac-2neg diff-log div-sub prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
2 → 42
Calls
2 calls:
3.0ms
(- 1.0 (cos x))
7.0ms
(/ (- 1.0 (cos x)) (* x x))

series9.0ms

Counts
2 → 6
Calls
2 calls:
3.0ms
(- 1.0 (cos x))
6.0ms
(/ (- 1.0 (cos x)) (* x x))

simplify59.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0221271
1735239
22396239
35002239

prune94.0ms

Filtered
48 candidates to 34 candidates (29.2%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New371148
Fresh000
Picked101
Done000
Total381149

Merged error: 0.1b

Counts
49 → 11

localize9.0ms

Local error

Found 3 expressions with local error:

0.3b
(* 1/720 (pow x 4))
0.4b
(* 1/24 (pow x 2))
11.6b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
sqr-pow
pow1
pow-to-exp diff-log pow-exp *-commutative cbrt-unprod unpow2
sub-neg flip3-- associate--l+ sum-log flip--
Counts
3 → 66
Calls
3 calls:
5.0ms
(* 1/720 (pow x 4))
5.0ms
(* 1/24 (pow x 2))
6.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

series12.0ms

Counts
3 → 9
Calls
3 calls:
4.0ms
(* 1/720 (pow x 4))
3.0ms
(* 1/24 (pow x 2))
5.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

simplify40.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0268345
11132313
25001307

prune124.0ms

Filtered
75 candidates to 46 candidates (38.7%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New74175
Fresh01010
Picked011
Done000
Total741286

Merged error: 0.1b

Counts
86 → 12

localize11.0ms

Local error

Found 4 expressions with local error:

0.3b
(* 1/720 (pow x 4))
0.4b
(* 1/24 (pow x 2))
1.4b
(log (exp (* 1/24 (pow x 2))))
23.3b
(- (+ (* 1/720 (pow x 4)) 1/2) (log (exp (* 1/24 (pow x 2)))))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt
15×*-un-lft-identity associate-*r*
14×add-exp-log
12×add-cube-cbrt
unpow-prod-down add-cbrt-cube add-log-exp
unswap-sqr
pow1 log-prod associate-*l* prod-exp
log-pow sqr-pow
associate--r+
pow-to-exp diff-log pow-exp *-commutative cbrt-unprod distribute-lft-out-- unpow2
sub-neg exp-prod flip3-- exp-to-pow rem-log-exp associate--l+ sum-log flip-- difference-of-squares
Counts
4 → 86
Calls
4 calls:
5.0ms
(* 1/720 (pow x 4))
5.0ms
(* 1/24 (pow x 2))
2.0ms
(log (exp (* 1/24 (pow x 2))))
9.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (log (exp (* 1/24 (pow x 2)))))

series15.0ms

Counts
4 → 12
Calls
4 calls:
4.0ms
(* 1/720 (pow x 4))
3.0ms
(* 1/24 (pow x 2))
3.0ms
(log (exp (* 1/24 (pow x 2))))
5.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (log (exp (* 1/24 (pow x 2)))))

simplify41.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0305496
11195433
25002429

prune175.0ms

Filtered
98 candidates to 61 candidates (37.8%)
Pruning

12 alts after pruning (10 fresh and 2 done)

PrunedKeptTotal
New98098
Fresh01010
Picked011
Done011
Total9812110

Merged error: 0.1b

Counts
110 → 12

localize7.0ms

Local error

Found 3 expressions with local error:

0.1b
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
0.1b
(/ (- 1.0 (cos x)) x)
1.4b
(- 1.0 (cos x))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
62×add-sqr-sqrt
47×*-un-lft-identity
46×times-frac
29×add-cube-cbrt
27×add-exp-log
19×associate-*r*
17×add-cbrt-cube
13×associate-*l*
div-exp
prod-exp distribute-lft-out-- difference-of-squares
unswap-sqr
pow1 cbrt-undiv associate-/l* add-log-exp
cbrt-unprod
associate-/r* div-inv
rec-exp flip3-- 1-exp flip-- associate-/l/
frac-times sub-neg frac-2neg diff-log div-sub associate-*r/ pow-prod-down associate-*l/ clear-num *-commutative
Counts
3 → 114
Calls
3 calls:
16.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
6.0ms
(/ (- 1.0 (cos x)) x)
3.0ms
(- 1.0 (cos x))

series14.0ms

Counts
3 → 9
Calls
3 calls:
5.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
5.0ms
(/ (- 1.0 (cos x)) x)
3.0ms
(- 1.0 (cos x))

simplify60.0ms

Algorithm
egg-herbie
Counts
123 → 123
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
0521814
12334726
25001690

prune113.0ms

Filtered
123 candidates to 82 candidates (33.3%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1212123
Fresh369
Picked101
Done022
Total12510135

Merged error: 0.1b

Counts
135 → 10

regimes129.0ms

Accuracy

99.5% (0.2b remaining)

Error of 0.3b against oracle of 0.1b and baseline of 31.8b

bsearch31.0ms

Steps
ItersRangePoint
10
6.296263866195351e-10
4429.475794956495
0.0336663248089112
9
-481781.8837170955
-0.012224266776747678
-0.030804876869537152

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04620
14620

end0.0ms

sample1.8s

Algorithm
intervals
Results
783.0ms1602×body2560valid
331.0ms1249×body1280valid
240.0ms1452×body640valid
114.0ms987×body320valid
79.0ms2236×body80valid
38.0ms474×body160valid

Profiling

Loading profile data...