Details

Time bar (total: 4.7s)

sample66.0ms

Algorithm
intervals
Results
27.0ms47×body2560valid
15.0ms52×body1280valid
9.0ms46×body640valid
4.0ms29×body320valid
4.0ms69×body80valid
2.0ms13×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: 31.7b

localize6.0ms

Local error

Found 2 expressions with local error:

1.7b
(- 1.0 (cos x))
16.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))

series63.0ms

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

prune128.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 2 expressions with local error:

0.2b
(* 1/24 (pow x 2))
12.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:
6.0ms
(* 1/24 (pow x 2))
0.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

series68.0ms

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

simplify102.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 3 (98.0ms)

IterNodesCost
0139194
1532171
22601171
35001170

prune104.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.1b

localize7.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (sqrt (- 1.0 (cos x))) x)
0.1b
(/ (sqrt (- 1.0 (cos x))) x)
1.7b
(- 1.0 (cos x))
1.7b
(- 1.0 (cos x))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt *-un-lft-identity
52×add-cube-cbrt
48×times-frac
40×sqrt-prod
18×prod-diff
16×associate-/l*
10×distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube add-log-exp
fma-neg associate-/r*
pow1 expm1-log1p-u flip3-- sqrt-div flip-- log1p-expm1-u associate-/l/
cbrt-undiv sub-neg frac-2neg diff-log div-exp clear-num div-inv
Counts
4 → 158
Calls
4 calls:
8.0ms
(/ (sqrt (- 1.0 (cos x))) x)
10.0ms
(/ (sqrt (- 1.0 (cos x))) x)
3.0ms
(- 1.0 (cos x))
3.0ms
(- 1.0 (cos x))

series213.0ms

Counts
4 → 12
Calls
4 calls:
89.0ms
(/ (sqrt (- 1.0 (cos x))) x)
88.0ms
(/ (sqrt (- 1.0 (cos x))) x)
18.0ms
(- 1.0 (cos x))
18.0ms
(- 1.0 (cos x))

simplify180.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 3 (163.0ms)

IterNodesCost
03011368
19361148
249531118
350011112

prune349.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ (sqrt 1) (/ x (sqrt (- 1.0 (cos x))))) (/ (sqrt (- 1.0 (cos x))) x))
0.1b
(/ (sqrt (- 1.0 (cos x))) x)
1.7b
(- 1.0 (cos x))
1.7b
(- 1.0 (cos x))

rewrite170.0ms

Algorithm
rewrite-expression-head
Rules
437×times-frac
371×add-sqr-sqrt
264×*-un-lft-identity
252×sqrt-prod
201×add-cube-cbrt
185×associate-*l*
30×unswap-sqr
28×associate-*r*
27×add-exp-log add-cbrt-cube distribute-lft-out-- difference-of-squares
18×prod-diff
14×sqrt-div
13×associate-/r/
10×cbrt-undiv div-exp
flip3-- flip-- div-inv
associate-/l* add-log-exp
pow1 fma-neg prod-exp cbrt-unprod
expm1-log1p-u log1p-expm1-u
associate-/r*
sub-neg diff-log associate-/l/
frac-times frac-2neg associate-*r/ pow-prod-down associate-*l/ clear-num *-commutative
Counts
4 → 376
Calls
4 calls:
126.0ms
(* (/ (sqrt 1) (/ x (sqrt (- 1.0 (cos x))))) (/ (sqrt (- 1.0 (cos x))) x))
8.0ms
(/ (sqrt (- 1.0 (cos x))) x)
3.0ms
(- 1.0 (cos x))
3.0ms
(- 1.0 (cos x))

series173.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(* (/ (sqrt 1) (/ x (sqrt (- 1.0 (cos x))))) (/ (sqrt (- 1.0 (cos x))) x))
89.0ms
(/ (sqrt (- 1.0 (cos x))) x)
18.0ms
(- 1.0 (cos x))
18.0ms
(- 1.0 (cos x))

simplify60.0ms

Algorithm
egg-herbie
Counts
388 → 388
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
012004980
150014576

prune863.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 0.1b

regimes52.0ms

Accuracy

99% (0.3b remaining)

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

bsearch76.0ms

Steps
ItersRangePoint
9
0.0012055448239290207
14520.350903362307
0.025388615584991975
9
-1078.7327260164275
-0.0019174381104543623
-0.03385827954078283

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03522
13522

end0.0ms

sample1.9s

Algorithm
intervals
Results
831.0ms1596×body2560valid
351.0ms1257×body1280valid
281.0ms1453×body640valid
140.0ms954×body320valid
123.0ms2259×body80valid
48.0ms481×body160valid