Details

Time bar (total: 4.0s)

sample53.0ms

Algorithm
intervals
Results
28.0ms62×body2560valid
7.0ms48×body640valid
6.0ms27×body1280valid
3.0ms77×body80valid
3.0ms26×body320valid
1.0ms16×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: 29.3b

localize6.0ms

Local error

Found 2 expressions with local error:

0.9b
(- 1.0 (cos x))
17.3b
(/ (- 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))

series66.0ms

Counts
2 → 6
Calls
2 calls:
17.0ms
(- 1.0 (cos x))
48.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

prune127.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.1b

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))
0.9b
(- 1.0 (cos x))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
69×add-sqr-sqrt
54×*-un-lft-identity
46×times-frac
36×add-cube-cbrt
27×add-exp-log
19×associate-*r*
17×add-cbrt-cube
13×associate-*l*
div-exp prod-diff
prod-exp distribute-lft-out-- difference-of-squares
unswap-sqr
pow1 cbrt-undiv associate-/l* add-log-exp
cbrt-unprod
expm1-log1p-u fma-neg associate-/r* log1p-expm1-u 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 → 132
Calls
3 calls:
7.0ms
(/ (- 1.0 (cos x)) x)
17.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
4.0ms
(- 1.0 (cos x))

series106.0ms

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

simplify70.0ms

Algorithm
egg-herbie
Counts
141 → 141
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
0582999
12640823
25001787

prune244.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.1b

localize8.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ x (- 1.0 (cos x)))
0.1b
(* (/ 1 x) (/ 1 (/ x (- 1.0 (cos x)))))
0.2b
(/ 1 (/ x (- 1.0 (cos x))))
0.9b
(- 1.0 (cos x))

rewrite71.0ms

Algorithm
rewrite-expression-head
Rules
283×times-frac
234×add-sqr-sqrt
198×*-un-lft-identity
135×add-cube-cbrt
100×add-exp-log
68×associate-*r*
50×div-exp
32×add-cbrt-cube
28×prod-exp
26×associate-/r* distribute-lft-out-- difference-of-squares
18×associate-/r/
17×rec-exp 1-exp
15×unswap-sqr
13×cbrt-undiv associate-*l*
11×div-inv
pow1 flip3-- prod-diff flip--
cbrt-unprod associate-/l* add-log-exp
expm1-log1p-u log1p-expm1-u
pow-flip fma-neg pow-prod-down inv-pow
frac-2neg clear-num
frac-times sub-neg diff-log associate-*r/ associate-*l/ un-div-inv *-commutative
Counts
4 → 324
Calls
4 calls:
5.0ms
(/ x (- 1.0 (cos x)))
32.0ms
(* (/ 1 x) (/ 1 (/ x (- 1.0 (cos x)))))
9.0ms
(/ 1 (/ x (- 1.0 (cos x))))
4.0ms
(- 1.0 (cos x))

series148.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(/ x (- 1.0 (cos x)))
46.0ms
(* (/ 1 x) (/ 1 (/ x (- 1.0 (cos x)))))
42.0ms
(/ 1 (/ x (- 1.0 (cos x))))
19.0ms
(- 1.0 (cos x))

simplify56.0ms

Algorithm
egg-herbie
Counts
336 → 336
Iterations

Useful iterations: 1 (26.0ms)

IterNodesCost
011702869
150012418

prune657.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.1b

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x)))
0.1b
(* (/ 1 x) (/ 1 (fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x)))))
0.2b
(fma x 1/6 (/ 2 x))
0.4b
(/ 1 (fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x))))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt
48×add-exp-log
39×times-frac
32×*-un-lft-identity
26×add-cube-cbrt
18×div-exp add-cbrt-cube
16×prod-exp
13×associate-*r* associate-*l*
pow1 rec-exp 1-exp unswap-sqr
cbrt-undiv
expm1-log1p-u cbrt-unprod log1p-expm1-u add-log-exp
pow-flip pow-prod-down associate-/r* div-inv associate-/l* inv-pow
fma-udef
frac-times frac-2neg associate-*r/ associate-*l/ clear-num un-div-inv *-commutative
Counts
4 → 125
Calls
4 calls:
1.0ms
(fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x)))
11.0ms
(* (/ 1 x) (/ 1 (fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x)))))
1.0ms
(fma x 1/6 (/ 2 x))
3.0ms
(/ 1 (fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x))))

series215.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x)))
67.0ms
(* (/ 1 x) (/ 1 (fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x)))))
48.0ms
(fma x 1/6 (/ 2 x))
57.0ms
(/ 1 (fma (pow x 3) 1/120 (fma x 1/6 (/ 2 x))))

simplify59.0ms

Algorithm
egg-herbie
Counts
137 → 137
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
05301159
122261007
25001952

prune258.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 0.1b

regimes43.0ms

Accuracy

99% (0.2b remaining)

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

bsearch65.0ms

Steps
ItersRangePoint
7
0.0008659720100092236
0.04032056371688071
0.0300611177250479
9
-3875183.9477288676
-0.008763241487176904
-0.03128865823944801

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04527
14527

end0.0ms

sample1.6s

Algorithm
intervals
Results
749.0ms1614×body2560valid
278.0ms1214×body1280valid
227.0ms1523×body640valid
97.0ms893×body320valid
76.0ms2304×body80valid
32.0ms452×body160valid