Details

Time bar (total: 3.4s)

sample54.0ms

Algorithm
intervals
Results
23.0ms50×body2560valid
10.0ms48×body1280valid
6.0ms42×body640valid
4.0ms38×body320valid
2.0ms59×body80valid
1.0ms19×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: 34.1b

localize6.0ms

Local error

Found 2 expressions with local error:

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

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt *-un-lft-identity
add-exp-log add-cbrt-cube
times-frac associate-/l*
add-cube-cbrt add-log-exp
distribute-lft-out-- difference-of-squares
pow1 cbrt-undiv flip3-- div-exp flip-- associate-/l/
sub-neg frac-2neg diff-log div-sub prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
2 → 42
Calls
2 calls:
3.0ms
(- 1.0 (cos x))
9.0ms
(/ (- 1.0 (cos x)) (* x x))

series67.0ms

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

simplify60.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0221271
1735239
22396239
35002239

prune107.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 1/720 (pow x 4))
0.2b
(* 1/24 (pow x 2))
9.6b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
sqr-pow
pow1
pow-to-exp diff-log pow-exp *-commutative cbrt-unprod unpow2
sub-neg flip3-- associate--l+ sum-log flip--
Counts
3 → 66
Calls
3 calls:
5.0ms
(* 1/720 (pow x 4))
8.0ms
(* 1/24 (pow x 2))
24.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

series107.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(* 1/720 (pow x 4))
24.0ms
(* 1/24 (pow x 2))
43.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

simplify38.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0268347
11132316
25001310

prune150.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 1/720 (pow x 4))
0.2b
(* 1/24 (pow x 2))
9.6b
(+ (* 1/720 (pow x 4)) (- 1/2 (* 1/24 (pow x 2))))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
sqr-pow
pow1
pow-to-exp associate-+r+ pow-exp sum-log *-commutative cbrt-unprod unpow2
+-commutative associate-+r- sub-neg flip3-+ diff-log flip-+
Counts
3 → 67
Calls
3 calls:
5.0ms
(* 1/720 (pow x 4))
6.0ms
(* 1/24 (pow x 2))
6.0ms
(+ (* 1/720 (pow x 4)) (- 1/2 (* 1/24 (pow x 2))))

series107.0ms

Counts
3 → 9
Calls
3 calls:
36.0ms
(* 1/720 (pow x 4))
25.0ms
(* 1/24 (pow x 2))
46.0ms
(+ (* 1/720 (pow x 4)) (- 1/2 (* 1/24 (pow x 2))))

simplify44.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0274345
11103314
25001314

prune147.0ms

Pruning

7 alts after pruning (6 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) (/ (sqrt (- 1.0 (cos x))) x))
2.5b
(- 1.0 (cos x))
2.5b
(- 1.0 (cos x))

rewrite70.0ms

Algorithm
rewrite-expression-head
Rules
167×add-sqr-sqrt
156×times-frac
143×*-un-lft-identity
104×sqrt-prod
89×add-cube-cbrt
40×swap-sqr
28×associate-*r* associate-*l*
24×distribute-lft-out--
18×add-exp-log add-cbrt-cube difference-of-squares
11×pow1
unswap-sqr
associate-/l* add-log-exp
cbrt-undiv div-exp div-inv
prod-exp cbrt-unprod
flip3-- associate-/r* flip--
sub-neg sqrt-div diff-log associate-/l/
pow2 frac-times frac-2neg pow-plus associate-*r/ pow-prod-down associate-*l/ clear-num pow-sqr *-commutative pow-prod-up
Counts
4 → 206
Calls
4 calls:
8.0ms
(/ (sqrt (- 1.0 (cos x))) x)
41.0ms
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (- 1.0 (cos x))) x))
3.0ms
(- 1.0 (cos x))
3.0ms
(- 1.0 (cos x))

series180.0ms

Counts
4 → 12
Calls
4 calls:
97.0ms
(/ (sqrt (- 1.0 (cos x))) x)
43.0ms
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (- 1.0 (cos x))) x))
18.0ms
(- 1.0 (cos x))
23.0ms
(- 1.0 (cos x))

simplify92.0ms

Algorithm
egg-herbie
Counts
218 → 218
Iterations

Useful iterations: 2 (70.0ms)

IterNodesCost
06672403
133402087
250011922

prune364.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.1b

regimes46.0ms

Accuracy

99% (0.3b remaining)

Error of 0.5b against oracle of 0.1b and baseline of 32.4b

bsearch72.0ms

Steps
ItersRangePoint
10
7.712829756242493e-08
8770343.893451896
0.03236536385949008
9
-1827977.1926269082
-0.00043085380315138777
-0.028975567409347768

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03423
13423

end0.0ms

sample1.6s

Algorithm
intervals
Results
751.0ms1615×body2560valid
275.0ms1171×body1280valid
222.0ms1519×body640valid
97.0ms943×body320valid
77.0ms2276×body80valid
40.0ms476×body160valid