Details

Time bar (total: 3.9s)

sample48.0ms

Algorithm
intervals
Results
19.0ms43×body2560valid
8.0ms37×body1280valid
7.0ms54×body640valid
3.0ms78×body80valid
3.0ms24×body320valid
1.0ms20×body160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0134
1214
2264
3284
4284

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.0b

localize6.0ms

Local error

Found 2 expressions with local error:

2.8b
(- 1.0 (cos x))
14.5b
(/ (- 1.0 (cos x)) (* x x))

rewrite15.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:
3.0ms
(- 1.0 (cos x))
10.0ms
(/ (- 1.0 (cos x)) (* x x))

series65.0ms

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

simplify32.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0279446
11006326
25001317

prune138.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.2b

localize6.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (/ (- 1.0 (cos x)) x) x)
0.2b
(/ (- 1.0 (cos x)) x)
2.8b
(- 1.0 (cos x))

rewrite32.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:
12.0ms
(/ (/ (- 1.0 (cos x)) x) x)
9.0ms
(/ (- 1.0 (cos x)) x)
3.0ms
(- 1.0 (cos x))

series110.0ms

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

simplify59.0ms

Algorithm
egg-herbie
Counts
174 → 174
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
05921453
122121292
250011283

prune303.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.2b

localize9.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (cbrt (pow (- 1.0 (cos x)) 3)) x)
0.3b
(cbrt (pow (- 1.0 (cos x)) 3))
0.4b
(pow (- 1.0 (cos x)) 3)
2.8b
(- 1.0 (cos x))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
80×cbrt-prod
79×add-sqr-sqrt *-un-lft-identity
57×times-frac
53×add-cube-cbrt
30×unpow-prod-down cube-prod
19×associate-/l*
13×distribute-lft-out-- difference-of-squares
prod-diff
add-exp-log
cube-div cube-mult unpow3 add-cbrt-cube add-log-exp sqr-pow
pow1
expm1-log1p-u cbrt-div flip3-- flip-- log1p-expm1-u
pow-unpow fma-neg associate-/r*
associate-/l/
cbrt-undiv pow-to-exp sub-neg pow-pow frac-2neg pow1/3 diff-log div-exp pow-exp clear-num rem-cbrt-cube div-inv rem-cube-cbrt
Counts
4 → 183
Calls
4 calls:
20.0ms
(/ (cbrt (pow (- 1.0 (cos x)) 3)) x)
5.0ms
(cbrt (pow (- 1.0 (cos x)) 3))
5.0ms
(pow (- 1.0 (cos x)) 3)
3.0ms
(- 1.0 (cos x))

series126.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(/ (cbrt (pow (- 1.0 (cos x)) 3)) x)
18.0ms
(cbrt (pow (- 1.0 (cos x)) 3))
48.0ms
(pow (- 1.0 (cos x)) 3)
18.0ms
(- 1.0 (cos x))

simplify68.0ms

Algorithm
egg-herbie
Counts
195 → 195
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04721433
118861248
250021217

prune318.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt x)
0.5b
(cbrt x)
0.5b
(cbrt x)
2.8b
(- 1.0 (cos x))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt *-un-lft-identity
14×add-cube-cbrt
cbrt-prod prod-diff
add-log-exp
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
fma-neg pow1/3
sub-neg flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
4 → 67
Calls
4 calls:
0.0ms
(cbrt x)
1.0ms
(cbrt x)
1.0ms
(cbrt x)
3.0ms
(- 1.0 (cos x))

series555.0ms

Counts
4 → 12
Calls
4 calls:
178.0ms
(cbrt x)
176.0ms
(cbrt x)
183.0ms
(cbrt x)
19.0ms
(- 1.0 (cos x))

simplify93.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0183370
1534270
22582252
35001237

prune173.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0.2b

regimes55.0ms

Accuracy

99% (0.3b remaining)

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

bsearch70.0ms

Steps
ItersRangePoint
10
4.555257425893614e-05
47183757994.54101
0.03326480281497669
9
-13600.963204601821
-0.00047371797307045637
-0.02973539225823786

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03017
13017

end0.0ms

sample1.5s

Algorithm
intervals
Results
720.0ms1542×body2560valid
303.0ms1302×body1280valid
211.0ms1512×body640valid
93.0ms926×body320valid
69.0ms2266×body80valid
31.0ms452×body160valid