Details

Time bar (total: 5.1s)

sample41.0ms

Algorithm
intervals
Results
9.0ms180×body80valid
8.0ms36×body2560valid
4.0ms24×body1280valid
3.0ms75×body80nan
2.0ms17×body640valid
1.0msbody320valid
1.0msbody5120valid
0.0msbody160valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.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.0b

Counts
2 → 1

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.6b
(- (* b b) (* (* 4.0 a) c))
1.3b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
23.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite30.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:
11.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
4.0ms
(- (* b b) (* (* 4.0 a) c))
8.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series293.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
44.0ms
(- (* b b) (* (* 4.0 a) c))
74.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
67.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify49.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0438854
11702750
25001735

prune251.0ms

Filtered
102 candidates to 82 candidates (80.4%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New957102
Fresh000
Picked011
Done000
Total958103

Merged error: 5.9b

Counts
103 → 8

localize19.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
2.5b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
8.7b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
23.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite55.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:
10.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
17.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
13.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series461.0ms

Counts
4 → 12
Calls
4 calls:
73.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
142.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
175.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
69.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify143.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (105.0ms)

IterNodesCost
08295119
137633863
250013860

prune483.0ms

Filtered
244 candidates to 141 candidates (57.8%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New2395244
Fresh246
Picked011
Done011
Total24111252

Merged error: 5.8b

Counts
252 → 11

localize17.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
2.5b
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (/ 1 (* 2.0 a)))
8.7b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
23.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite60.0ms

Algorithm
rewrite-expression-head
Rules
109×add-sqr-sqrt
103×*-un-lft-identity
71×add-cube-cbrt
60×prod-diff
51×add-exp-log
46×times-frac
41×sqrt-prod
29×distribute-rgt-neg-in
27×associate-*l* add-cbrt-cube
21×distribute-lft-neg-in
20×prod-exp
16×div-exp distribute-lft-out-- difference-of-squares
10×fma-neg
cbrt-undiv cbrt-unprod add-log-exp
pow1 neg-mul-1 associate-*r* associate-/r*
expm1-log1p-u rec-exp flip3-- 1-exp associate-/r/ flip-- log1p-expm1-u
div-inv associate-/l*
sqrt-div diff-log associate-/l/ unswap-sqr
associate--l- neg-sub0 frac-times sub-neg rem-sqrt-square frac-2neg sqrt-pow1 flip3-+ pow1/2 associate-*r/ pow-prod-down neg-log associate-*l/ clear-num un-div-inv *-commutative flip-+
Counts
4 → 227
Calls
4 calls:
10.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
20.0ms
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (/ 1 (* 2.0 a)))
15.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series459.0ms

Counts
4 → 12
Calls
4 calls:
74.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
144.0ms
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (/ 1 (* 2.0 a)))
172.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
69.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify167.0ms

Algorithm
egg-herbie
Counts
239 → 239
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
09214846
145513468
250013468

prune434.0ms

Filtered
239 candidates to 128 candidates (53.6%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2372239
Fresh448
Picked011
Done112
Total2428250

Merged error: 5.8b

Counts
250 → 8

localize17.0ms

Local error

Found 4 expressions with local error:

0.6b
(- (* b b) (* (* 4.0 a) c))
1.0b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
12.9b
(/ (* 4.0 (* a c)) (* 2.0 a))
23.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
61×prod-diff
51×add-sqr-sqrt
50×*-un-lft-identity
46×add-cube-cbrt
34×sqrt-prod
25×add-exp-log add-cbrt-cube
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
11×fma-neg
10×add-log-exp
prod-exp cbrt-unprod
neg-mul-1
cbrt-undiv div-exp
pow1
expm1-log1p-u log1p-expm1-u
flip3-- diff-log flip--
sub-neg sqrt-div distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 rem-sqrt-square frac-2neg sqrt-pow1 times-frac pow1/2 neg-log clear-num associate-/r* div-inv associate-/l*
Counts
4 → 150
Calls
4 calls:
4.0ms
(- (* b b) (* (* 4.0 a) c))
10.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
8.0ms
(/ (* 4.0 (* a c)) (* 2.0 a))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series193.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(- (* b b) (* (* 4.0 a) c))
73.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
9.0ms
(/ (* 4.0 (* a c)) (* 2.0 a))
68.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify100.0ms

Algorithm
egg-herbie
Counts
162 → 162
Iterations

Useful iterations: 2 (75.0ms)

IterNodesCost
06173042
131681947
250021867

prune237.0ms

Filtered
162 candidates to 79 candidates (48.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1611162
Fresh145
Picked101
Done112
Total1646170

Merged error: 5.8b

Counts
170 → 6

regimes241.0ms

Accuracy

93.2% (1.6b remaining)

Error of 7.0b against oracle of 5.4b and baseline of 29.4b

bsearch197.0ms

Steps
ItersRangePoint
9
1.314833454423355e+61
1.6016599845544569e+66
7.7076257484328935e+65
10
-4.4782599006234366e-147
-2.1964053429920463e-160
-2.2271387790640654e-160
10
-1.5021501144069279e+69
-2.501148282372368e+59
-1.2963688795759268e+64

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04024
14024

end0.0ms

sample1.1s

Algorithm
intervals
Results
238.0ms1049×body2560valid
226.0ms5827×body80valid
164.0ms883×body1280valid
104.0ms2908×body80nan
73.0ms486×body640valid
26.0ms244×body320valid
25.0ms92×body5120valid
9.0ms129×body160valid