Details

Time bar (total: 3.7s)

sample51.0ms

Algorithm
intervals
Results
20.0ms48×body2560valid
10.0ms46×body1280valid
7.0ms48×body640valid
4.0ms36×body320valid
3.0ms70×body80valid
1.0msbody160valid

simplify8.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: 34.6b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

1.5b
(- 1.0 (cos x))
15.5b
(/ (- 1.0 (cos x)) (* x x))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
101×add-sqr-sqrt
89×*-un-lft-identity
75×times-frac
55×add-cube-cbrt
18×swap-sqr associate-*r* associate-*l*
17×distribute-lft-out-- difference-of-squares
15×associate-/r*
prod-diff
add-exp-log add-cbrt-cube
*-commutative unswap-sqr
associate-/l*
add-log-exp
fma-neg
pow1 cbrt-undiv expm1-log1p-u flip3-- div-exp flip-- log1p-expm1-u associate-/l/
sub-neg frac-2neg diff-log div-sub prod-exp clear-num cbrt-unprod div-inv
Counts
2 → 142
Calls
2 calls:
4.0ms
(- 1.0 (cos x))
12.0ms
(/ (- 1.0 (cos x)) (* x x))

series64.0ms

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

simplify73.0ms

Algorithm
egg-herbie
Counts
148 → 148
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
05451225
123481087
250011068

prune203.0ms

Filtered
148 candidates to 82 candidates (44.6%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New13513148
Fresh000
Picked101
Done000
Total13613149

Merged error: 0.2b

Counts
149 → 13

localize9.0ms

Local error

Found 2 expressions with local error:

0.2b
(* 1/24 (pow x 2))
11.9b
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
associate-*r*
add-exp-log
add-cube-cbrt *-un-lft-identity
pow1 unpow-prod-down add-cbrt-cube unswap-sqr
associate-*l* prod-exp
expm1-log1p-u log1p-expm1-u unpow2 add-log-exp sqr-pow
pow-to-exp pow-prod-down pow-exp *-commutative cbrt-unprod fma-udef
Counts
2 → 40
Calls
2 calls:
6.0ms
(* 1/24 (pow x 2))
1.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

series72.0ms

Counts
2 → 6
Calls
2 calls:
24.0ms
(* 1/24 (pow x 2))
47.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

simplify100.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 3 (96.0ms)

IterNodesCost
0139196
1532173
22581173
35001172

prune97.0ms

Filtered
46 candidates to 30 candidates (34.8%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New46046
Fresh01212
Picked011
Done000
Total461359

Merged error: 0.2b

Counts
59 → 13

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
137×add-sqr-sqrt
125×*-un-lft-identity
117×frac-times
99×associate-/l*
84×add-cube-cbrt
75×associate-/r*
46×times-frac
27×add-exp-log
26×clear-num
25×frac-2neg
22×associate-/l/
19×associate-*r* distribute-lft-out--
18×difference-of-squares
17×add-cbrt-cube
13×associate-*r/ associate-*l*
12×flip3-- flip--
div-exp prod-diff associate-*l/
prod-exp
unswap-sqr
pow1 cbrt-undiv add-log-exp
cbrt-unprod
expm1-log1p-u fma-neg un-div-inv log1p-expm1-u div-inv
rec-exp 1-exp
sub-neg diff-log div-sub pow-prod-down *-commutative
Counts
3 → 271
Calls
3 calls:
12.0ms
(/ (- 1.0 (cos x)) x)
20.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
4.0ms
(- 1.0 (cos x))

series109.0ms

Counts
3 → 9
Calls
3 calls:
48.0ms
(/ (- 1.0 (cos x)) x)
42.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
19.0ms
(- 1.0 (cos x))

simplify51.0ms

Algorithm
egg-herbie
Counts
280 → 280
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
011222125
150011863

prune302.0ms

Filtered
280 candidates to 145 candidates (48.2%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New2728280
Fresh8311
Picked101
Done011
Total28112293

Merged error: 0.2b

Counts
293 → 12

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ 1 x) (/ (exp (log (- 1.0 (cos x)))) x))
0.2b
(exp (log (- 1.0 (cos x))))
0.4b
(log (- 1.0 (cos x)))
1.5b
(- 1.0 (cos x))

rewrite58.0ms

Algorithm
rewrite-expression-head
Rules
159×add-sqr-sqrt
144×frac-times
136×*-un-lft-identity
132×associate-/l*
100×add-cube-cbrt
81×associate-/r*
78×log-prod
73×exp-sum
45×times-frac
36×add-exp-log
28×associate-*r* clear-num
27×frac-2neg
24×log-div
22×exp-diff
20×associate-/l/
16×associate-*r/ add-cbrt-cube distribute-lft-out-- difference-of-squares
14×div-exp
13×flip3-- associate-*l* flip--
12×prod-exp
prod-diff associate-*l/ unswap-sqr
pow1
add-log-exp
cbrt-undiv expm1-log1p-u exp-prod cbrt-unprod log1p-expm1-u
rec-exp fma-neg 1-exp
log-pow un-div-inv div-inv rem-exp-log
sub-neg diff-log rem-log-exp pow-prod-down *-commutative
Counts
4 → 316
Calls
4 calls:
25.0ms
(* (/ 1 x) (/ (exp (log (- 1.0 (cos x)))) x))
5.0ms
(exp (log (- 1.0 (cos x))))
7.0ms
(log (- 1.0 (cos x)))
4.0ms
(- 1.0 (cos x))

series165.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(* (/ 1 x) (/ (exp (log (- 1.0 (cos x)))) x))
24.0ms
(exp (log (- 1.0 (cos x))))
78.0ms
(log (- 1.0 (cos x)))
19.0ms
(- 1.0 (cos x))

simplify64.0ms

Algorithm
egg-herbie
Counts
328 → 328
Iterations

Useful iterations: 1 (30.0ms)

IterNodesCost
012622659
150012300

prune479.0ms

Filtered
328 candidates to 154 candidates (53.0%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New3253328
Fresh1910
Picked101
Done011
Total32713340

Merged error: 0.2b

Counts
340 → 13

regimes58.0ms

Accuracy

99.1% (0.3b remaining)

Error of 0.4b against oracle of 0.1b and baseline of 31.7b

bsearch56.0ms

Steps
ItersRangePoint
9
0.0004381094517774334
96283.49646244562
0.03411142251183559
6
-0.04448272872103196
-0.010589856477353462
-0.029536016732455837

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03618
13618

end0.0ms

sample1.6s

Algorithm
intervals
Results
748.0ms1597×body2560valid
280.0ms1226×body1280valid
228.0ms1534×body640valid
101.0ms913×body320valid
72.0ms2240×body80valid
37.0ms490×body160valid