Details

Time bar (total: 2.9s)

sample57.0ms

Algorithm
intervals
Results
30.0ms64×body2560valid
8.0ms39×body1280valid
6.0ms41×body640valid
3.0ms26×body320valid
2.0ms71×body80valid
1.0ms15×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.5b

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

1.5b
(- 1.0 (cos x))
17.7b
(/ (- 1.0 (cos x)) (* x x))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
flip3-- associate-/r* flip-- associate-/l/
sub-neg frac-2neg div-sub clear-num *-commutative div-inv
Counts
2 → 12
Calls
2 calls:
2.0ms
(- 1.0 (cos x))
4.0ms
(/ (- 1.0 (cos x)) (* x x))

series63.0ms

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

simplify164.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (39.0ms)

IterNodesCost
012981
142177
2117377
3469276
4500176

prune54.0ms

Filtered
18 candidates to 13 candidates (72.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New11718
Fresh000
Picked011
Done000
Total11819

Merged error: 0.2b

Counts
19 → 8

localize8.0ms

Local error

Found 2 expressions with local error:

0.1b
(* 1/24 (pow x 2))
12.9b
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
*-commutative fma-udef unpow2 sqr-pow
Counts
2 → 4
Calls
2 calls:
3.0ms
(* 1/24 (pow x 2))
1.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

series70.0ms

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

simplify72.0ms

Algorithm
egg-herbie
Counts
10 → 10
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03728
110725
234825
3169025
4500125

prune28.0ms

Filtered
10 candidates to 5 candidates (50.0%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New10010
Fresh066
Picked011
Done011
Total10818

Merged error: 0.2b

Counts
18 → 8

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

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
associate-/l/
flip3-- frac-2neg div-sub clear-num flip-- div-inv
sub-neg associate-/l*
Counts
3 → 20
Calls
3 calls:
4.0ms
(/ (/ (- 1.0 (cos x)) x) x)
3.0ms
(/ (- 1.0 (cos x)) x)
2.0ms
(- 1.0 (cos x))

series108.0ms

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

simplify58.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0169118
1491111
21801109
35001109

prune58.0ms

Filtered
29 candidates to 20 candidates (69.0%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New25429
Fresh415
Picked101
Done022
Total30737

Merged error: 0.1b

Counts
37 → 7

localize7.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (* (- 1.0 (cos x)) (/ 1 x)) x)
0.1b
(* (- 1.0 (cos x)) (/ 1 x))
1.5b
(- 1.0 (cos x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
13×associate-/l/
12×frac-times
flip3-- clear-num flip--
frac-2neg
associate-*r/
associate-*l/ un-div-inv
div-inv associate-/l*
associate-*r* *-commutative
sub-neg
Counts
3 → 38
Calls
3 calls:
6.0ms
(/ (* (- 1.0 (cos x)) (/ 1 x)) x)
4.0ms
(* (- 1.0 (cos x)) (/ 1 x))
2.0ms
(- 1.0 (cos x))

series112.0ms

Counts
3 → 9
Calls
3 calls:
47.0ms
(/ (* (- 1.0 (cos x)) (/ 1 x)) x)
43.0ms
(* (- 1.0 (cos x)) (/ 1 x))
22.0ms
(- 1.0 (cos x))

simplify150.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (145.0ms)

IterNodesCost
0218213
1892203
24731201
35001200

prune76.0ms

Filtered
47 candidates to 29 candidates (61.7%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New44347
Fresh224
Picked011
Done022
Total46854

Merged error: 0.1b

Counts
54 → 8

regimes70.0ms

Accuracy

99.6% (0.1b remaining)

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

bsearch56.0ms

Steps
ItersRangePoint
6
0.018000635171863108
0.09117784756913819
0.03010910821075468
10
-1421.6155834850151
-1.485944467815708e-07
-0.03323288645356819

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03015
13015

end0.0ms

sample1.6s

Algorithm
intervals
Results
778.0ms1643×body2560valid
279.0ms1221×body1280valid
221.0ms1450×body640valid
100.0ms914×body320valid
78.0ms2291×body80valid
35.0ms481×body160valid