Details

Time bar (total: 4.0s)

sample62.0ms

Algorithm
intervals
Results
27.0ms57×body2560valid
10.0ms37×body1280valid
10.0ms45×body640valid
4.0ms32×body320valid
2.0ms66×body80valid
2.0ms19×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: 33.7b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

2.2b
(- 1.0 (cos x))
16.9b
(/ (- 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))

series69.0ms

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

prune129.0ms

Filtered
64 candidates to 43 candidates (67.2%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New531164
Fresh000
Picked101
Done000
Total541165

Merged error: 0.2b

Counts
65 → 11

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite11.0ms

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

series132.0ms

Counts
3 → 9
Calls
3 calls:
59.0ms
(- 1/2 (* 1/24 (pow x 2)))
25.0ms
(* 1/24 (pow x 2))
47.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

simplify186.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (180.0ms)

IterNodesCost
0209318
1817281
24271278
35001273

prune148.0ms

Filtered
68 candidates to 47 candidates (69.1%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New68068
Fresh01010
Picked011
Done000
Total681179

Merged error: 0.2b

Counts
79 → 11

localize8.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.2b
(- 1.0 (cos x))
2.2b
(- 1.0 (cos x))

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
181×add-sqr-sqrt
157×*-un-lft-identity
156×times-frac
104×sqrt-prod
103×add-cube-cbrt
40×swap-sqr
28×associate-*r* associate-*l*
24×distribute-lft-out--
18×add-exp-log prod-diff add-cbrt-cube difference-of-squares
11×pow1
unswap-sqr
associate-/l* add-log-exp
fma-neg
cbrt-undiv div-exp div-inv
expm1-log1p-u prod-exp cbrt-unprod log1p-expm1-u
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 → 238
Calls
4 calls:
9.0ms
(/ (sqrt (- 1.0 (cos x))) x)
25.0ms
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (- 1.0 (cos x))) x))
4.0ms
(- 1.0 (cos x))
5.0ms
(- 1.0 (cos x))

series182.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(/ (sqrt (- 1.0 (cos x))) x)
49.0ms
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (- 1.0 (cos x))) x))
18.0ms
(- 1.0 (cos x))
19.0ms
(- 1.0 (cos x))

simplify104.0ms

Algorithm
egg-herbie
Counts
250 → 250
Iterations

Useful iterations: 2 (81.0ms)

IterNodesCost
07292762
135882273
250022108

prune390.0ms

Filtered
250 candidates to 141 candidates (56.4%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New2464250
Fresh369
Picked101
Done011
Total25011261

Merged error: 0.2b

Counts
261 → 11

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (log (exp (- 1.0 (cos x))))) x))
2.2b
(- 1.0 (cos x))
2.2b
(- 1.0 (cos x))
2.3b
(log (exp (- 1.0 (cos x))))

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
111×add-sqr-sqrt
81×*-un-lft-identity
72×times-frac
63×add-cube-cbrt
48×sqrt-prod
40×associate-*r*
28×associate-*l*
27×prod-diff
24×log-pow
20×exp-prod
16×add-exp-log add-cbrt-cube
14×log-prod
11×exp-sum
10×pow1
distribute-lft-out-- difference-of-squares unswap-sqr
add-log-exp
fma-neg
cbrt-undiv expm1-log1p-u div-exp prod-exp cbrt-unprod log1p-expm1-u
sub-neg
flip3-- diff-log flip-- div-inv
frac-times log-div exp-diff associate-*r/ rem-log-exp pow-prod-down associate-*l/ *-commutative
Counts
4 → 186
Calls
4 calls:
31.0ms
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (log (exp (- 1.0 (cos x))))) x))
4.0ms
(- 1.0 (cos x))
4.0ms
(- 1.0 (cos x))
6.0ms
(log (exp (- 1.0 (cos x))))

series106.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(* (/ (sqrt (- 1.0 (cos x))) x) (/ (sqrt (log (exp (- 1.0 (cos x))))) x))
18.0ms
(- 1.0 (cos x))
19.0ms
(- 1.0 (cos x))
19.0ms
(log (exp (- 1.0 (cos x))))

simplify74.0ms

Algorithm
egg-herbie
Counts
198 → 198
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
06882088
128411468
250011375

prune373.0ms

Filtered
198 candidates to 121 candidates (61.1%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New1962198
Fresh189
Picked101
Done011
Total19811209

Merged error: 0.1b

Counts
209 → 11

regimes103.0ms

Accuracy

99.4% (0.2b remaining)

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

bsearch92.0ms

Steps
ItersRangePoint
9
8.159003009805276e-07
0.06291072096871789
0.02982085320761324
9
-5.855776674212404
-7.74497267090904e-05
-0.03566864611298506

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04224
14224

end0.0ms

sample1.7s

Algorithm
intervals
Results
734.0ms1543×body2560valid
320.0ms1260×body1280valid
250.0ms1534×body640valid
121.0ms898×body320valid
79.0ms2274×body80valid
39.0ms491×body160valid