Details

Time bar (total: 5.5s)

sample43.0ms

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

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

prune3.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))))

rewrite31.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:
12.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))))

series317.0ms

Counts
4 → 12
Calls
4 calls:
109.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
50.0ms
(- (* b b) (* 4.0 (* a c)))
83.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
74.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify50.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0438854
11658750
25001735

prune268.0ms

Filtered
102 candidates to 82 candidates (80.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New966102
Fresh000
Picked011
Done000
Total967103

Merged error: 5.9b

Counts
103 → 7

localize13.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))))

rewrite58.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))))))
8.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series506.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
159.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (* 2.0 a))
190.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify138.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (99.0ms)

IterNodesCost
08185119
135603863
250013860

prune498.0ms

Filtered
244 candidates to 141 candidates (57.8%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New2386244
Fresh235
Picked011
Done011
Total24011251

Merged error: 5.8b

Counts
251 → 11

localize15.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))))

rewrite61.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)))))
21.0ms
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (/ 1 (* 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))))

series503.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
153.0ms
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (/ 1 (* 2.0 a)))
198.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
71.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify156.0ms

Algorithm
egg-herbie
Counts
239 → 239
Iterations

Useful iterations: 1 (22.0ms)

IterNodesCost
09104844
143513468
250013468

prune439.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

localize13.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))))

rewrite37.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))
9.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series212.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(- (* b b) (* 4.0 (* a c)))
81.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
10.0ms
(/ (* 4.0 (* a c)) (* 2.0 a))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify97.0ms

Algorithm
egg-herbie
Counts
162 → 162
Iterations

Useful iterations: 2 (70.0ms)

IterNodesCost
06043032
129571948
250011867

prune242.0ms

Filtered
162 candidates to 79 candidates (48.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1602162
Fresh235
Picked101
Done112
Total1646170

Merged error: 5.8b

Counts
170 → 6

regimes435.0ms

Accuracy

93.2% (1.6b remaining)

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

bsearch193.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

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04024
14024

end0.0ms

sample1.1s

Algorithm
intervals
Results
239.0ms5827×body80valid
237.0ms1049×body2560valid
166.0ms883×body1280valid
108.0ms2908×body80nan
73.0ms486×body640valid
28.0ms92×body5120valid
27.0ms244×body320valid
10.0ms129×body160valid