Details

Time bar (total: 4.3s)

sample47.0ms

Algorithm
intervals
Results
8.0ms33×body2560valid
7.0ms185×body80valid
6.0ms17×body640valid
5.0ms25×body1280valid
4.0ms97×body80nan
2.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0299
1659
21219
31519
41609
51649
61649

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

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))
1.0b
(- (* b b) (* 4.0 (* a c)))
1.5b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
23.9b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
10×*-commutative
prod-diff
flip3-- associate-*r* flip--
fma-neg
associate--l- neg-sub0 sub-neg sqrt-div div-sub associate-/r* associate-/l/
neg-mul-1 frac-2neg pow1/2 clear-num div-inv
Counts
4 → 32
Calls
4 calls:
8.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
5.0ms
(- (* b b) (* 4.0 (* a c)))
6.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series304.0ms

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

simplify121.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 3 (115.0ms)

IterNodesCost
0325356
11145329
24433316
35001314

prune132.0ms

Filtered
44 candidates to 31 candidates (70.5%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New36844
Fresh000
Picked101
Done000
Total37845

Merged error: 5.8b

Counts
45 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (* b b) (* 4.0 (* a c)))
3.3b
(/ (/ (fma a (* 4.0 c) 0) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (* 2.0 a))
10.2b
(/ (fma a (* 4.0 c) 0) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
23.9b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
13×*-commutative
prod-diff associate-/r/
flip3-- times-frac flip--
div-inv
associate-*r*
frac-2neg clear-num associate-/l/ associate-/l*
fma-neg sqrt-div associate-/r*
sub-neg pow1/2
Counts
4 → 39
Calls
4 calls:
6.0ms
(- (* b b) (* 4.0 (* a c)))
9.0ms
(/ (/ (fma a (* 4.0 c) 0) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (* 2.0 a))
7.0ms
(/ (fma a (* 4.0 c) 0) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
6.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series611.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(- (* b b) (* 4.0 (* a c)))
255.0ms
(/ (/ (fma a (* 4.0 c) 0) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (* 2.0 a))
230.0ms
(/ (fma a (* 4.0 c) 0) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
76.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify38.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0349505
11124464
25001434

prune330.0ms

Filtered
51 candidates to 37 candidates (72.5%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New46551
Fresh437
Picked101
Done000
Total51859

Merged error: 5.7b

Counts
59 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.8b
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
1.0b
(- (* b b) (* 4.0 (* a c)))
15.3b
(/ (fma a (* 4.0 c) 0) a)
23.9b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
prod-diff
associate-*r*
flip3-- flip--
sub-neg fma-neg sqrt-div
frac-2neg pow1/2 clear-num div-inv
Counts
4 → 24
Calls
4 calls:
9.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
6.0ms
(- (* b b) (* 4.0 (* a c)))
2.0ms
(/ (fma a (* 4.0 c) 0) a)
6.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series236.0ms

Counts
4 → 12
Calls
4 calls:
79.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
45.0ms
(- (* b b) (* 4.0 (* a c)))
42.0ms
(/ (fma a (* 4.0 c) 0) a)
69.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify91.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0213237
1714224
22955216
35001216

prune97.0ms

Filtered
36 candidates to 20 candidates (55.6%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New35136
Fresh167
Picked101
Done000
Total37744

Merged error: 5.7b

Counts
44 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.4b
(* (* 4.0 c) (/ (/ 1 (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) 2.0))
0.8b
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
1.0b
(- (* b b) (* 4.0 (* a c)))
23.9b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
11×*-commutative
associate-*r/
prod-diff
associate-*r* associate-/l/
flip3-- clear-num un-div-inv flip-- associate-/l*
div-inv
sub-neg frac-2neg fma-neg sqrt-div associate-*l* associate-/r/
pow1/2
Counts
4 → 38
Calls
4 calls:
10.0ms
(* (* 4.0 c) (/ (/ 1 (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) 2.0))
6.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
6.0ms
(- (* b b) (* 4.0 (* a c)))
6.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series406.0ms

Counts
4 → 12
Calls
4 calls:
206.0ms
(* (* 4.0 c) (/ (/ 1 (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) 2.0))
78.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
48.0ms
(- (* b b) (* 4.0 (* a c)))
73.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify38.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0285312
11032290
25001279

prune106.0ms

Filtered
50 candidates to 31 candidates (62.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New49150
Fresh156
Picked011
Done000
Total50757

Merged error: 5.7b

Counts
57 → 7

regimes167.0ms

Accuracy

95.4% (1.1b remaining)

Error of 6.6b against oracle of 5.5b and baseline of 29.5b

bsearch187.0ms

Steps
ItersRangePoint
8
4.088553977120381e+100
8.044751807128501e+103
1.0673291895585486e+103
11
1.8145151230270015e-269
9.272403512084269e-250
2.4192404254399383e-264
6
-1.2994787762702041e+157
-3.0529494422842112e+156
-3.0812943354752785e+156

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04524
14524

end0.0ms

sample1.2s

Algorithm
intervals
Results
253.0ms1054×body2560valid
243.0ms5924×body80valid
179.0ms898×body1280valid
111.0ms2939×body80nan
66.0ms438×body640valid
33.0ms113×body5120valid
23.0ms199×body320valid
10.0ms131×body160valid