Details

Time bar (total: 4.3s)

sample40.0ms

Algorithm
intervals
Results
8.0ms35×body2560valid
8.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

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

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

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
10×*-commutative
prod-diff
associate-*r*
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:
8.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
8.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))))

series296.0ms

Counts
4 → 12
Calls
4 calls:
104.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
80.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
47.0ms
(- (* b b) (* 4.0 (* a c)))
66.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify139.0ms

Algorithm
egg-herbie
Counts
42 → 42
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0318329
11134301
24750289
35001289

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

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

rewrite32.0ms

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

series336.0ms

Counts
4 → 12
Calls
4 calls:
139.0ms
(/ 1 (* (/ a (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) 2.0))
81.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
48.0ms
(- (* b b) (* 4.0 (* a c)))
67.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify129.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0266306
1977286
24469273
35001273

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

localize18.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:
5.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
11.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))))

series476.0ms

Counts
4 → 12
Calls
4 calls:
79.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
143.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (* 2.0 a))
179.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify56.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
0372555
11701490
25001455

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

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

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

series379.0ms

Counts
4 → 12
Calls
4 calls:
76.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
126.0ms
(/ (/ 1 (/ (/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) 4.0) (* a c))) (* 2.0 a))
105.0ms
(/ (/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) 4.0) (* a c))
71.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify74.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
0617894
12620768
25001763

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

regimes130.0ms

Accuracy

95.9% (1.0b remaining)

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

bsearch184.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.2s

Algorithm
intervals
Results
266.0ms1101×body2560valid
238.0ms5787×body80valid
174.0ms900×body1280valid
119.0ms2923×body80nan
70.0ms458×body640valid
35.0ms105×body5120valid
26.0ms227×body320valid
9.0ms123×body160valid