Details

Time bar (total: 4.4s)

sample47.0ms

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

simplify15.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0289
1649
21149
31359
41449
51489
61489

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

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

rewrite23.0ms

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

series305.0ms

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

simplify102.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (97.0ms)

IterNodesCost
0274267
1960259
23423248
35001247

prune114.0ms

Filtered
33 candidates to 28 candidates (84.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New25833
Fresh000
Picked101
Done000
Total26834

Merged error: 5.8b

Counts
34 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
11×associate-/l*
associate-/r/ *-commutative
associate-/l/
flip3-- times-frac flip--
div-inv
associate-*r*
frac-2neg clear-num
sqrt-div associate-/r*
sub-neg pow1/2
Counts
4 → 37
Calls
4 calls:
5.0ms
(- (* b b) (* 4.0 (* a c)))
14.0ms
(/ (/ (* 4.0 (* a c)) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (* 2.0 a))
9.0ms
(/ (* 4.0 (* a c)) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series505.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(- (* b b) (* 4.0 (* a c)))
174.0ms
(/ (/ (* 4.0 (* a c)) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (* 2.0 a))
213.0ms
(/ (* 4.0 (* a c)) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
71.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify40.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0340495
11236457
25001440

prune159.0ms

Filtered
49 candidates to 43 candidates (87.8%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New45449
Fresh437
Picked101
Done000
Total50757

Merged error: 5.7b

Counts
57 → 7

localize15.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)))
6.0b
(* (* 2.0 a) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a))
23.9b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r/
flip3-- flip--
sub-neg sqrt-div associate-*l* clear-num *-commutative associate-/l/
frac-2neg pow1/2 associate-*r* un-div-inv div-inv
Counts
4 → 21
Calls
4 calls:
7.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
5.0ms
(- (* b b) (* 4.0 (* a c)))
9.0ms
(* (* 2.0 a) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series298.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
46.0ms
(- (* b b) (* 4.0 (* a c)))
93.0ms
(* (* 2.0 a) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify105.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (101.0ms)

IterNodesCost
0209221
1751215
23673210
35001208

prune102.0ms

Filtered
33 candidates to 26 candidates (78.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New33033
Fresh066
Picked011
Done000
Total33740

Merged error: 5.7b

Counts
40 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (* b b) (* 4.0 (* a c)))
1.8b
(/ (* 4.0 c) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a))
3.3b
(/ (/ (* 4.0 c) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a)) (* 2.0 a))
23.9b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
24×times-frac
20×associate-/r/
15×*-commutative div-inv
14×associate-/l/
12×associate-/l*
frac-2neg clear-num
flip3-- flip--
associate-/r*
sqrt-div
sub-neg pow1/2
Counts
4 → 55
Calls
4 calls:
6.0ms
(- (* b b) (* 4.0 (* a c)))
9.0ms
(/ (* 4.0 c) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a))
12.0ms
(/ (/ (* 4.0 c) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a)) (* 2.0 a))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series501.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(- (* b b) (* 4.0 (* a c)))
177.0ms
(/ (* 4.0 c) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a))
198.0ms
(/ (/ (* 4.0 c) (/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) a)) (* 2.0 a))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify52.0ms

Algorithm
egg-herbie
Counts
67 → 67
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0425624
11521545
25001539

prune182.0ms

Filtered
67 candidates to 55 candidates (82.1%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New66167
Fresh145
Picked011
Done011
Total67774

Merged error: 5.7b

Counts
74 → 7

regimes171.0ms

Accuracy

93.9% (1.5b remaining)

Error of 7.0b against oracle of 5.5b and baseline of 30.7b

bsearch234.0ms

Steps
ItersRangePoint
8
4.088553977120381e+100
8.044751807128501e+103
1.6809283377365093e+101
11
1.8145151230270015e-269
9.272403512084269e-250
8.40594418978702e-269
10
-1.2131416731721854e+50
-2.1643807627199687e+37
-2.186349513120992e+48

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04727
14727

end0.0ms

sample1.2s

Algorithm
intervals
Results
278.0ms1054×body2560valid
250.0ms5924×body80valid
189.0ms898×body1280valid
119.0ms2939×body80nan
73.0ms438×body640valid
37.0ms113×body5120valid
24.0ms199×body320valid
11.0ms131×body160valid