Details

Time bar (total: 6.2s)

sample142.0ms

Algorithm
intervals
Results
77.0ms57×body2560valid
36.0ms80×body1280valid
13.0ms58×body640valid
5.0ms32×body320valid
2.0ms19×body160valid
1.0ms10×body80valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0114
1144
2164
3164

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.1b

Counts
2 → 1

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
2.2b
(- 1.0 (cos x))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt *-un-lft-identity
19×add-cube-cbrt
15×times-frac
prod-diff
associate-/l* distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube add-log-exp
fma-neg associate-/r*
pow1 expm1-log1p-u flip3-- flip-- log1p-expm1-u associate-/l/
cbrt-undiv sub-neg frac-2neg diff-log div-sub div-exp clear-num div-inv
Counts
2 → 68
Calls
2 calls:
6.0ms
(/ (- 1.0 (cos x)) (sin x))
4.0ms
(- 1.0 (cos x))

series59.0ms

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

simplify36.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0292569
1965460
25002460

prune177.0ms

Filtered
74 candidates to 51 candidates (68.9%)
Pruning

15 alts after pruning (15 fresh and 0 done)

PrunedKeptTotal
New591574
Fresh000
Picked101
Done000
Total601575

Merged error: 0.3b

Counts
75 → 15

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
0.0b
(fma 1/240 (pow x 5) (* 1/2 x))

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube fma-udef log1p-expm1-u add-log-exp
Counts
2 → 20
Calls
2 calls:
1.0ms
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
1.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

series174.0ms

Counts
2 → 6
Calls
2 calls:
52.0ms
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
122.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

simplify34.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
061148
1188130
21009130
35002130

prune106.0ms

Filtered
26 candidates to 21 candidates (80.8%)
Pruning

15 alts after pruning (14 fresh and 1 done)

PrunedKeptTotal
New26026
Fresh01414
Picked011
Done000
Total261541

Merged error: 0.3b

Counts
41 → 15

localize10.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
0.2b
(exp (/ (- 1.0 (cos x)) (sin x)))
1.3b
(log (exp (/ (- 1.0 (cos x)) (sin x))))
2.2b
(- 1.0 (cos x))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
62×add-sqr-sqrt *-un-lft-identity
45×times-frac
40×add-cube-cbrt
38×exp-prod
20×log-pow
11×distribute-lft-out-- difference-of-squares
prod-diff
add-log-exp
add-exp-log add-cbrt-cube
pow1 associate-/l*
expm1-log1p-u log1p-expm1-u
log-prod fma-neg div-sub associate-/r* div-inv
flip3-- exp-diff flip-- associate-/l/
cbrt-undiv sub-neg log-div frac-2neg diff-log div-exp rem-log-exp clear-num rem-exp-log
Counts
4 → 132
Calls
4 calls:
7.0ms
(/ (- 1.0 (cos x)) (sin x))
6.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
7.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
4.0ms
(- 1.0 (cos x))

series139.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(/ (- 1.0 (cos x)) (sin x))
41.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
40.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
18.0ms
(- 1.0 (cos x))

simplify43.0ms

Algorithm
egg-herbie
Counts
144 → 144
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
03681009
11099873
25002871

prune311.0ms

Filtered
144 candidates to 102 candidates (70.8%)
Pruning

17 alts after pruning (15 fresh and 2 done)

PrunedKeptTotal
New1404144
Fresh21113
Picked011
Done011
Total14217159

Merged error: 0.2b

Counts
159 → 17

localize8.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1 (/ (sin x) (- 1.0 (cos x))))
0.2b
(/ (sin x) (- 1.0 (cos x)))
2.2b
(- 1.0 (cos x))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
138×times-frac
112×add-sqr-sqrt *-un-lft-identity
78×add-cube-cbrt
26×associate-/r*
17×distribute-lft-out-- difference-of-squares
16×add-exp-log
11×associate-/r/
10×add-cbrt-cube
prod-diff
div-exp
flip3-- flip-- div-inv associate-/l*
add-log-exp
pow1 cbrt-undiv
expm1-log1p-u fma-neg log1p-expm1-u
rec-exp frac-2neg 1-exp clear-num
sub-neg pow-flip diff-log inv-pow
Counts
3 → 177
Calls
3 calls:
8.0ms
(/ 1 (/ (sin x) (- 1.0 (cos x))))
7.0ms
(/ (sin x) (- 1.0 (cos x)))
4.0ms
(- 1.0 (cos x))

series92.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(/ 1 (/ (sin x) (- 1.0 (cos x))))
34.0ms
(/ (sin x) (- 1.0 (cos x)))
18.0ms
(- 1.0 (cos x))

simplify69.0ms

Algorithm
egg-herbie
Counts
186 → 186
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
05721779
126361549
250011441

prune214.0ms

Filtered
186 candidates to 95 candidates (51.1%)
Pruning

18 alts after pruning (16 fresh and 2 done)

PrunedKeptTotal
New1842186
Fresh01414
Picked101
Done022
Total18518203

Merged error: 0.2b

Counts
203 → 18

regimes173.0ms

Accuracy

98.3% (0.5b remaining)

Error of 0.7b against oracle of 0.2b and baseline of 31.8b

bsearch2.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03532
13532

end0.0ms

sample4.4s

Algorithm
intervals
Results
2.1s1543×body2560valid
1.5s2760×body1280valid
458.0ms1940×body640valid
147.0ms897×body320valid
63.0ms486×body160valid
24.0ms373×body80valid
3.0msbody5120valid