Details

Time bar (total: 4.3s)

sample40.0ms

Algorithm
intervals
Results
8.0ms35×body2560valid
7.0ms195×body80valid
6.0ms33×body1280valid
3.0ms97×body80nan
1.0msbody640valid
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

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

Counts
2 → 1

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite25.0ms

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

series328.0ms

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

simplify133.0ms

Algorithm
egg-herbie
Counts
42 → 42
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0322329
11151301
24762289
35001289

prune136.0ms

Filtered
42 candidates to 30 candidates (71.4%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New35742
Fresh000
Picked101
Done000
Total36743

Merged error: 5.8b

Counts
43 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (* (/ a (- (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))
24.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
10×*-commutative
prod-diff
associate-*l*
associate-/r* associate-/r/
flip3-- flip--
associate-*l/
sub-neg frac-2neg fma-neg sqrt-div clear-num div-inv
pow1/2 inv-pow
Counts
4 → 33
Calls
4 calls:
9.0ms
(/ 1 (* (/ a (- (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)))

series340.0ms

Counts
4 → 12
Calls
4 calls:
142.0ms
(/ 1 (* (/ a (- (sqrt (- (* b b) (* (* 4.0 a) c))) b)) 2.0))
81.0ms
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
43.0ms
(- (* b b) (* (* 4.0 a) c))
73.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify120.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0271306
1990286
24474273
35001273

prune103.0ms

Filtered
45 candidates to 29 candidates (64.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New43245
Fresh246
Picked011
Done000
Total45752

Merged error: 5.7b

Counts
52 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

1.5b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.6b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
10.1b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
24.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
associate-/l/
associate-/r/
flip3-- times-frac flip--
div-inv
*-commutative
frac-2neg clear-num associate-/l*
flip3-+ sqrt-div associate-/r* flip-+
associate--l- neg-sub0 neg-mul-1 sub-neg pow1/2 fma-neg
Counts
4 → 35
Calls
4 calls:
6.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
10.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
9.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
6.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series478.0ms

Counts
4 → 12
Calls
4 calls:
75.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
145.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
189.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
69.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify58.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
0383555
11845490
25002456

prune144.0ms

Filtered
47 candidates to 41 candidates (87.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New45247
Fresh145
Picked101
Done011
Total47754

Merged error: 5.7b

Counts
54 → 7

localize20.0ms

Local error

Found 4 expressions with local error:

1.5b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.6b
(/ (/ 1 (/ (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) 4.0) (* a c))) (* 2.0 a))
10.4b
(/ (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) 4.0) (* a c))
24.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
34×associate-/l/
33×associate-/r/
28×times-frac
19×*-commutative
16×associate-/l*
14×div-inv
13×associate-/r*
10×frac-2neg clear-num
flip3-- flip--
div-sub
associate--l- neg-sub0 sqrt-div
neg-mul-1 sub-neg pow1/2 fma-neg
Counts
4 → 71
Calls
4 calls:
6.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
13.0ms
(/ (/ 1 (/ (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) 4.0) (* a c))) (* 2.0 a))
9.0ms
(/ (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) 4.0) (* a c))
6.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series492.0ms

Counts
4 → 12
Calls
4 calls:
74.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
119.0ms
(/ (/ 1 (/ (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) 4.0) (* a c))) (* 2.0 a))
227.0ms
(/ (/ (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) 4.0) (* a c))
71.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify72.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
0618894
12656768
25002763

prune220.0ms

Filtered
83 candidates to 66 candidates (79.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New80383
Fresh325
Picked101
Done011
Total84690

Merged error: 5.7b

Counts
90 → 6

regimes129.0ms

Accuracy

95.9% (1.0b remaining)

Error of 6.5b against oracle of 5.5b and baseline of 29.3b

bsearch189.0ms

Steps
ItersRangePoint
8
4.088553977120381e+100
8.044751807128501e+103
2.739269029802694e+102
8
-2.0939008728128375e-165
-4.8620484299604695e-170
-4.962069054079445e-170
10
-3.0529494422842112e+156
-1.5054982703030158e+138
-2.7863758169125638e+138

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04727
14927
24927

end0.0ms

sample1.1s

Algorithm
intervals
Results
252.0ms1101×body2560valid
223.0ms5787×body80valid
167.0ms900×body1280valid
108.0ms2923×body80nan
66.0ms458×body640valid
32.0ms227×body320valid
31.0ms105×body5120valid
9.0ms123×body160valid