Details

Time bar (total: 3.4s)

sample52.0ms

Algorithm
intervals
Results
19.0ms45×body2560valid
11.0ms46×body1280valid
8.0ms48×body640valid
4.0ms38×body320valid
3.0ms65×body80valid
1.0ms14×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: 32.4b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

1.8b
(- 1.0 (cos x))
13.6b
(/ (- 1.0 (cos x)) (* x x))

rewrite19.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))
13.0ms
(/ (- 1.0 (cos x)) (* x x))

series62.0ms

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

simplify33.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0279446
11006326
25001317

prune115.0ms

Filtered
64 candidates to 43 candidates (67.2%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New55964
Fresh000
Picked101
Done000
Total56965

Merged error: 0.1b

Counts
65 → 9

localize10.0ms

Local error

Found 2 expressions with local error:

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

rewrite11.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:
9.0ms
(* 1/24 (pow x 2))
1.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

series65.0ms

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

simplify105.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 3 (101.0ms)

IterNodesCost
0139194
1532171
22601171
35001170

prune92.0ms

Filtered
45 candidates to 30 candidates (66.7%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New45045
Fresh088
Picked011
Done000
Total45954

Merged error: 0.1b

Counts
54 → 9

localize6.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (/ (- 1.0 (cos x)) x) x)
0.1b
(/ (- 1.0 (cos x)) x)
1.8b
(- 1.0 (cos x))

rewrite26.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:
8.0ms
(/ (/ (- 1.0 (cos x)) x) x)
6.0ms
(/ (- 1.0 (cos x)) x)
4.0ms
(- 1.0 (cos x))

series109.0ms

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

simplify60.0ms

Algorithm
egg-herbie
Counts
174 → 174
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
05921453
122121292
250011283

prune237.0ms

Filtered
174 candidates to 114 candidates (65.5%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New1695174
Fresh347
Picked011
Done011
Total17211183

Merged error: 0.1b

Counts
183 → 11

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (log (exp (- 1.0 (cos x)))) x)
0.2b
(exp (- 1.0 (cos x)))
1.8b
(- 1.0 (cos x))
1.9b
(log (exp (- 1.0 (cos x))))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
58×add-sqr-sqrt *-un-lft-identity
44×add-cube-cbrt
30×exp-prod log-pow
27×times-frac prod-diff
22×exp-sum
14×log-prod
pow1 associate-/l* add-log-exp
distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube
expm1-log1p-u log1p-expm1-u
sub-neg exp-diff fma-neg associate-/r*
log-div diff-log rem-exp-log
cbrt-undiv flip3-- frac-2neg div-sub div-exp rem-log-exp clear-num flip-- div-inv
Counts
4 → 141
Calls
4 calls:
9.0ms
(/ (log (exp (- 1.0 (cos x)))) x)
5.0ms
(exp (- 1.0 (cos x)))
4.0ms
(- 1.0 (cos x))
6.0ms
(log (exp (- 1.0 (cos x))))

series124.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(/ (log (exp (- 1.0 (cos x)))) x)
44.0ms
(exp (- 1.0 (cos x)))
18.0ms
(- 1.0 (cos x))
19.0ms
(log (exp (- 1.0 (cos x))))

simplify50.0ms

Algorithm
egg-herbie
Counts
153 → 153
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
03931192
11234873
25001725

prune200.0ms

Filtered
153 candidates to 95 candidates (62.1%)
Pruning

11 alts after pruning (8 fresh and 3 done)

PrunedKeptTotal
New1530153
Fresh088
Picked011
Done022
Total15311164

Merged error: 0.1b

Counts
164 → 11

regimes98.0ms

Accuracy

99.5% (0.1b remaining)

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

bsearch77.0ms

Steps
ItersRangePoint
10
8.416769919470913e-17
1.2368608357549227
0.03505810655614032
11
-55383.34621353126
-7.66540900750845e-16
-0.029675694574374373

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02715
12715

end0.0ms

sample1.8s

Algorithm
intervals
Results
744.0ms1563×body2560valid
394.0ms1457×body640valid
297.0ms1204×body1280valid
107.0ms942×body320valid
85.0ms2315×body80valid
51.0ms519×body160valid