Details

Time bar (total: 1.9m)

sample31.0ms

Algorithm
intervals
Results
16.0ms96×body1280valid
4.0ms128×body80valid
2.0ms14×body640valid
1.0ms11×body320valid
0.0msbody160valid

simplify16.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0196
1246
2286
3306
4356
5376
6376

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: 15.7b

Counts
2 → 1

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot 1.0 x)
0.0b
(/ 1.0 (hypot 1.0 x))
3.1b
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
18×add-sqr-sqrt
13×*-un-lft-identity
11×add-cube-cbrt
times-frac
add-exp-log add-cbrt-cube add-log-exp
pow1 associate-/r* associate-/l* difference-of-squares
sqrt-prod
cbrt-undiv sub-neg flip3-- frac-2neg diff-log div-exp clear-num flip-- div-inv distribute-lft-out-- unswap-sqr
Counts
3 → 50
Calls
3 calls:
1.0ms
(hypot 1.0 x)
3.0ms
(/ 1.0 (hypot 1.0 x))
12.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

series97.0ms

Counts
3 → 9
Calls
3 calls:
1.0ms
(hypot 1.0 x)
5.0ms
(/ 1.0 (hypot 1.0 x))
91.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

simplify125.0ms

Algorithm
egg-herbie
Counts
59 → 59
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0166365
1479340
21328338
34568338
45001338

prune108.0ms

Filtered
59 candidates to 42 candidates (71.2%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New55459
Fresh000
Picked101
Done000
Total56460

Merged error: 15.2b

Counts
60 → 4

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
0.0b
(/ 1.0 (hypot 1.0 x))
0.0b
(/ 1.0 (hypot 1.0 x))
2.6b
(- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x))))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
45×add-sqr-sqrt
40×associate-*r/
36×*-un-lft-identity
24×add-cube-cbrt
22×frac-sub
20×times-frac
14×associate-/l*
12×flip3-- associate-/r* flip--
add-exp-log add-cbrt-cube add-log-exp
unswap-sqr
clear-num difference-of-squares
pow1 frac-2neg associate-*l* associate--l+ un-div-inv distribute-lft-out--
sub-neg
cbrt-undiv distribute-rgt-in distribute-lft-in div-exp div-inv
+-commutative flip3-+ diff-log sum-log flip-+ distribute-lft-out
Counts
4 → 114
Calls
4 calls:
11.0ms
(+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
3.0ms
(/ 1.0 (hypot 1.0 x))
3.0ms
(/ 1.0 (hypot 1.0 x))
27.0ms
(- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x))))

series130.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
5.0ms
(/ 1.0 (hypot 1.0 x))
6.0ms
(/ 1.0 (hypot 1.0 x))
35.0ms
(- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x))))

simplify79.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (65.0ms)

IterNodesCost
05341148
121751096
250031094

prune290.0ms

Filtered
126 candidates to 87 candidates (69.0%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New1233126
Fresh303
Picked101
Done000
Total1273130

Merged error: 15.2b

Counts
130 → 3

localize30.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))
0.1b
(* (sqrt (hypot 1.0 x)) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))
0.1b
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
2.6b
(- (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x))) (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))

rewrite275.0ms

Algorithm
rewrite-expression-head
Rules
242×associate-*r/
234×*-un-lft-identity
229×add-sqr-sqrt
177×associate-*l*
96×associate-*l/
88×frac-sub
86×associate-*r*
84×frac-times unswap-sqr
76×distribute-lft-out
62×sqrt-prod
55×add-cube-cbrt
54×associate-/r*
46×flip3-- flip3-+ flip-- flip-+
38×distribute-lft-out--
36×associate-/l*
34×difference-of-squares
32×times-frac
20×add-exp-log add-cbrt-cube
18×clear-num un-div-inv
16×pow1
10×distribute-rgt-in distribute-lft-in
frac-2neg prod-exp cbrt-unprod
unpow-prod-down associate-+l+
pow-prod-down
+-commutative add-log-exp sqr-pow
*-commutative
difference-cubes pow-unpow
cbrt-undiv sub-neg diff-log div-exp div-inv
Counts
4 → 364
Calls
4 calls:
21.0ms
(* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))
24.0ms
(* (sqrt (hypot 1.0 x)) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))
49.0ms
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
151.0ms
(- (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x))) (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))

series203.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))
32.0ms
(* (sqrt (hypot 1.0 x)) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))
38.0ms
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
94.0ms
(- (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x))) (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))

simplify152.0ms

Algorithm
egg-herbie
Counts
376 → 376
Iterations

Useful iterations: 1 (56.0ms)

IterNodesCost
019169486
150019334

prune1.6s

Filtered
376 candidates to 220 candidates (58.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New3724376
Fresh112
Picked011
Done000
Total3736379

Merged error: 14.8b

Counts
379 → 6

localize36.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
0.1b
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
0.3b
(* (+ (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))) (- (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))))
2.6b
(- (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))))

rewrite4.1s

Algorithm
rewrite-expression-head
Rules
34594×associate-*r/
32208×sqrt-div
18404×frac-times
16930×associate-*l/
8144×flip3-- flip--
8096×frac-sub
8008×frac-add
6624×associate-/r*
5611×flip3-+ flip-+
4894×*-un-lft-identity
4416×associate-/l*
3718×add-sqr-sqrt
3706×sqrt-prod
3350×add-cube-cbrt
2208×clear-num un-div-inv
1104×frac-2neg
422×associate-*l*
235×distribute-lft-out
186×associate-*r*
177×unswap-sqr
74×distribute-lft-out--
72×difference-of-squares
68×times-frac
24×add-exp-log add-cbrt-cube
16×pow1
11×prod-exp cbrt-unprod
pow-prod-down
add-log-exp
*-commutative
sub-neg
cbrt-undiv distribute-rgt-in distribute-lft-in div-exp div-inv
diff-log
Counts
4 → 8805
Calls
4 calls:
53.0ms
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
53.0ms
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
561.0ms
(* (+ (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))) (- (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))))
166.0ms
(- (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))))

series1.1s

Counts
4 → 12
Calls
4 calls:
38.0ms
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
44.0ms
(* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))
670.0ms
(* (+ (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))) (- (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x))))))))
323.0ms
(- (sqrt (* (* 1.0 (- (pow 1.0 3) (pow 0.5 3))) (sqrt (hypot 1.0 x)))) (sqrt (* (+ (* 1.0 1.0) (+ (* 0.5 0.5) (* 1.0 0.5))) (* 0.5 (/ 1.0 (sqrt (hypot 1.0 x)))))))

simplify10.7s

Algorithm
egg-herbie
Counts
8817 → 8817
Iterations

Useful iterations: 0 (143.0ms)

IterNodesCost
089731144679

prune1.6m

Filtered
8817 candidates to 5621 candidates (63.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New881528817
Fresh134
Picked101
Done011
Total881768823

Merged error: 14.8b

Counts
8823 → 6

regimes131.0ms

Accuracy

0% (0.3b remaining)

Error of 15.9b against oracle of 15.6b and baseline of 15.9b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04533
14533

end0.0ms

sample809.0ms

Algorithm
intervals
Results
471.0ms2898×body1280valid
109.0ms3947×body80valid
81.0ms640×body640valid
28.0ms329×body320valid
10.0ms186×body160valid