Details

Time bar (total: 5.2s)

sample48.0ms

Algorithm
intervals
Results
9.0ms34×body2560valid
9.0ms179×body80valid
7.0ms29×body1280valid
4.0ms85×body80nan
3.0ms17×body640valid
2.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

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

Counts
2 → 1

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
1.0b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.0b
(- (* b b) (* (* 4.0 a) c))
23.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
11×add-sqr-sqrt
10×add-cube-cbrt fma-def add-log-exp
add-exp-log add-cbrt-cube
distribute-rgt-neg-in distribute-lft-out
pow1 times-frac associate-/l*
expm1-log1p-u log1p-expm1-u
distribute-lft-neg-in sqrt-prod
cbrt-undiv neg-sub0 associate-+l- flip3-- flip3-+ sqrt-div div-exp sum-log flip-- flip-+ associate-/l/
+-commutative neg-mul-1 sub-neg rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 fma-neg diff-log div-sub prod-diff neg-log prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 90
Calls
4 calls:
18.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
18.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
6.0ms
(- (* b b) (* (* 4.0 a) c))
7.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series288.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
76.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
43.0ms
(- (* b b) (* (* 4.0 a) c))
68.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify50.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0438854
11702750
25001735

prune264.0ms

Filtered
102 candidates to 82 candidates (80.4%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New948102
Fresh000
Picked101
Done000
Total958103

Merged error: 4.9b

Counts
103 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

2.8b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.2b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
11.1b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
23.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite54.0ms

Algorithm
rewrite-expression-head
Rules
125×add-sqr-sqrt
124×*-un-lft-identity
90×times-frac
80×add-cube-cbrt
60×prod-diff
44×sqrt-prod
32×distribute-rgt-neg-in
30×associate-/l*
22×distribute-lft-out-- difference-of-squares
21×distribute-lft-neg-in
18×add-exp-log add-cbrt-cube
10×fma-neg
associate-/r* add-log-exp
cbrt-undiv neg-mul-1 div-exp
associate-/r/
pow1 flip3-- flip--
expm1-log1p-u log1p-expm1-u div-inv
associate-/l/
frac-2neg sqrt-div diff-log prod-exp clear-num cbrt-unprod
associate--l- neg-sub0 sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 neg-log flip-+
Counts
4 → 232
Calls
4 calls:
12.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
16.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
12.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series495.0ms

Counts
4 → 12
Calls
4 calls:
74.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
180.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
174.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
68.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify145.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (104.0ms)

IterNodesCost
08295119
137633863
250013860

prune496.0ms

Filtered
244 candidates to 141 candidates (57.8%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New2413244
Fresh167
Picked011
Done000
Total24210252

Merged error: 4.8b

Counts
252 → 10

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (/ (* 2.0 a) (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
1.0b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.0b
(- (* b b) (* (* 4.0 a) c))
23.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
53×times-frac
48×*-un-lft-identity
29×add-sqr-sqrt
28×add-cube-cbrt
25×add-exp-log
13×add-cbrt-cube
12×div-exp
11×associate-/r*
10×fma-def distribute-lft-out add-log-exp
associate-/r/
distribute-rgt-neg-in
pow1
cbrt-undiv flip3-+ flip-+ div-inv
expm1-log1p-u log1p-expm1-u
distribute-lft-neg-in rec-exp 1-exp prod-exp sqrt-prod associate-/l*
flip3-- sqrt-div sum-log flip--
+-commutative neg-sub0 associate-+l- neg-mul-1 sub-neg rem-sqrt-square pow-flip frac-2neg sqrt-pow1 pow1/2 fma-neg diff-log prod-diff neg-log clear-num cbrt-unprod inv-pow
Counts
4 → 134
Calls
4 calls:
13.0ms
(/ 1 (/ (* 2.0 a) (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
8.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.0ms
(- (* b b) (* (* 4.0 a) c))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series334.0ms

Counts
4 → 12
Calls
4 calls:
141.0ms
(/ 1 (/ (* 2.0 a) (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
79.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
43.0ms
(- (* b b) (* (* 4.0 a) c))
70.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify75.0ms

Algorithm
egg-herbie
Counts
146 → 146
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
05561665
127071442
250011371

prune275.0ms

Filtered
146 candidates to 90 candidates (61.6%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1451146
Fresh178
Picked011
Done011
Total14610156

Merged error: 4.8b

Counts
156 → 10

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (/ 1 (* 2.0 a)) (- (sqrt (- (* b b) (* (* 4.0 a) c))) b))
1.0b
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
1.0b
(- (* b b) (* (* 4.0 a) c))
23.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
57×add-sqr-sqrt
55×prod-diff
50×*-un-lft-identity
46×add-cube-cbrt
35×sqrt-prod
23×add-exp-log
20×distribute-rgt-in distribute-lft-in
13×add-cbrt-cube
10×prod-exp
add-log-exp
pow1 fma-neg associate-*l*
associate-*r*
flip3-- flip--
expm1-log1p-u sub-neg div-exp cbrt-unprod log1p-expm1-u difference-of-squares
times-frac
cbrt-undiv frac-times rec-exp sqrt-div diff-log 1-exp associate-*r/ distribute-lft-out--
rem-sqrt-square sqrt-pow1 pow1/2 pow-prod-down associate-*l/ *-commutative div-inv unswap-sqr
Counts
4 → 154
Calls
4 calls:
16.0ms
(* (/ 1 (* 2.0 a)) (- (sqrt (- (* b b) (* (* 4.0 a) c))) b))
8.0ms
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
4.0ms
(- (* b b) (* (* 4.0 a) c))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series331.0ms

Counts
4 → 12
Calls
4 calls:
139.0ms
(* (/ 1 (* 2.0 a)) (- (sqrt (- (* b b) (* (* 4.0 a) c))) b))
78.0ms
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
43.0ms
(- (* b b) (* (* 4.0 a) c))
71.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify88.0ms

Algorithm
egg-herbie
Counts
166 → 166
Iterations

Useful iterations: 2 (67.0ms)

IterNodesCost
06512395
131301719
250011591

prune249.0ms

Filtered
166 candidates to 86 candidates (51.8%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New1660166
Fresh077
Picked011
Done022
Total16610176

Merged error: 4.8b

Counts
176 → 10

regimes213.0ms

Accuracy

85.7% (3.9b remaining)

Error of 9.3b against oracle of 5.4b and baseline of 32.6b

bsearch217.0ms

Steps
ItersRangePoint
9
14028.172733867412
3007116902181.375
4662246.201750503
8
-4.654091770266614e-259
-1.1349992526466847e-263
-3.0161999035837213e-263
10
-1.552489725432399e+46
-8.211399685419546e+34
-1.4899647929737788e+46

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04929
15129
25129

end0.0ms

sample1.4s

Algorithm
intervals
Results
324.0ms1101×body2560valid
296.0ms5800×body80valid
210.0ms887×body1280valid
146.0ms2958×body80nan
87.0ms469×body640valid
41.0ms117×body5120valid
34.0ms215×body320valid
13.0ms110×body160valid