Details

Time bar (total: 3.5s)

sample60.0ms

Algorithm
intervals
Results
27.0ms51×body2560valid
12.0ms51×body1280valid
6.0ms41×body640valid
3.0ms26×body320valid
2.0ms63×body80valid
2.0ms24×body160valid

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 (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 32.1b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

1.8b
(- 1.0 (cos x))
15.0b
(/ (- 1.0 (cos x)) (* x x))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt *-un-lft-identity
11×add-cube-cbrt
prod-diff
add-exp-log add-cbrt-cube
times-frac associate-/l*
add-log-exp
fma-neg distribute-lft-out-- difference-of-squares
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 associate-/r* cbrt-unprod div-inv
Counts
2 → 58
Calls
2 calls:
4.0ms
(- 1.0 (cos x))
8.0ms
(/ (- 1.0 (cos x)) (* x x))

series65.0ms

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

simplify33.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0279446
11006326
25001317

prune173.0ms

Filtered
64 candidates to 43 candidates (67.2%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New541064
Fresh000
Picked101
Done000
Total551065

Merged error: 0.1b

Counts
65 → 10

localize10.0ms

Local error

Found 2 expressions with local error:

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

rewrite7.0ms

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

series71.0ms

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

simplify106.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 3 (102.0ms)

IterNodesCost
0139194
1532171
22601171
35001170

prune93.0ms

Filtered
45 candidates to 30 candidates (66.7%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New45045
Fresh099
Picked011
Done000
Total451055

Merged error: 0.1b

Counts
55 → 10

localize6.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (/ (- 1.0 (cos x)) x) x)
0.1b
(/ (- 1.0 (cos x)) x)
1.8b
(- 1.0 (cos x))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
132×times-frac
110×add-sqr-sqrt *-un-lft-identity
76×add-cube-cbrt
24×associate-/l*
17×distribute-lft-out-- difference-of-squares
10×add-exp-log add-cbrt-cube
prod-diff
associate-/r* div-inv
add-log-exp
cbrt-undiv div-exp
pow1 expm1-log1p-u fma-neg div-sub log1p-expm1-u associate-/l/
flip3-- frac-2neg clear-num flip--
sub-neg diff-log
Counts
3 → 165
Calls
3 calls:
9.0ms
(/ (/ (- 1.0 (cos x)) x) x)
10.0ms
(/ (- 1.0 (cos x)) x)
4.0ms
(- 1.0 (cos x))

series104.0ms

Counts
3 → 9
Calls
3 calls:
41.0ms
(/ (/ (- 1.0 (cos x)) x) x)
46.0ms
(/ (- 1.0 (cos x)) x)
18.0ms
(- 1.0 (cos x))

simplify60.0ms

Algorithm
egg-herbie
Counts
174 → 174
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
05921453
122121292
250011283

prune239.0ms

Filtered
174 candidates to 113 candidates (64.9%)
Pruning

12 alts after pruning (10 fresh and 2 done)

PrunedKeptTotal
New1704174
Fresh268
Picked011
Done011
Total17212184

Merged error: 0.1b

Counts
184 → 12

localize7.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (- (/ 1.0 x) (/ (cos x) x)) x)
0.1b
(/ (cos x) x)
2.0b
(- (/ 1.0 x) (/ (cos x) x))

rewrite70.0ms

Algorithm
rewrite-expression-head
Rules
338×times-frac
287×add-sqr-sqrt
267×*-un-lft-identity
227×add-cube-cbrt
169×prod-diff
39×div-inv
20×distribute-lft-out-- difference-of-squares
15×associate-/l*
13×fma-neg
add-exp-log add-cbrt-cube
associate-/r*
distribute-rgt-out-- add-log-exp
associate-/l/
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv flip3-- frac-2neg div-exp clear-num frac-sub flip-- sub-div
sub-neg diff-log div-sub
Counts
3 → 306
Calls
3 calls:
29.0ms
(/ (- (/ 1.0 x) (/ (cos x) x)) x)
4.0ms
(/ (cos x) x)
18.0ms
(- (/ 1.0 x) (/ (cos x) x))

series188.0ms

Counts
3 → 9
Calls
3 calls:
97.0ms
(/ (- (/ 1.0 x) (/ (cos x) x)) x)
29.0ms
(/ (cos x) x)
62.0ms
(- (/ 1.0 x) (/ (cos x) x))

simplify114.0ms

Algorithm
egg-herbie
Counts
315 → 315
Iterations

Useful iterations: 2 (70.0ms)

IterNodesCost
010096352
132214216
250013627

prune302.0ms

Filtered
315 candidates to 139 candidates (44.1%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New3132315
Fresh279
Picked011
Done112
Total31611327

Merged error: 0.1b

Counts
327 → 11

regimes51.0ms

Accuracy

99% (0.3b remaining)

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

bsearch68.0ms

Steps
ItersRangePoint
9
2.1846438371975785e-05
719.5386143167987
0.03251997843777283
10
-43540924890.08803
-0.0051836583041924315
-0.03355247327065949

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03215
13215

end0.0ms

sample1.6s

Algorithm
intervals
Results
742.0ms1545×body2560valid
317.0ms1353×body1280valid
228.0ms1461×body640valid
99.0ms913×body320valid
81.0ms2252×body80valid
36.0ms476×body160valid