Details

Time bar (total: 4.5s)

sample56.0ms

Algorithm
intervals
Results
13.0ms300×body80nan
10.0ms556×pre80true
10.0ms140×body160valid
4.0ms116×body80valid

simplify12.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: 27.1b

Counts
2 → 1

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))
0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
27.0b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

rewrite26.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:
6.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
6.0ms
(- (* b b) (* (* 4.0 a) c))
8.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
6.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

series306.0ms

Counts
4 → 12
Calls
4 calls:
72.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
48.0ms
(- (* b b) (* (* 4.0 a) c))
106.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
80.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

simplify142.0ms

Algorithm
egg-herbie
Counts
42 → 42
Iterations

Useful iterations: 3 (136.0ms)

IterNodesCost
0322329
11151301
24760289
35001287

prune94.0ms

Filtered
42 candidates to 30 candidates (71.4%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New38442
Fresh000
Picked101
Done000
Total39443

Merged error: 0.4b

Counts
43 → 4

localize19.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.3b
(/ (/ (fma (* 4.0 c) a 0) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
0.4b
(/ (fma (* 4.0 c) a 0) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

rewrite28.0ms

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

series502.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(- (* b b) (* (* 4.0 a) c))
78.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
187.0ms
(/ (/ (fma (* 4.0 c) a 0) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
193.0ms
(/ (fma (* 4.0 c) a 0) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

simplify46.0ms

Algorithm
egg-herbie
Counts
54 → 54
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0360567
11240510
25001474

prune180.0ms

Filtered
54 candidates to 37 candidates (68.5%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New411354
Fresh303
Picked101
Done000
Total451358

Merged error: 0.0b

Counts
58 → 13

localize17.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.3b
(* (/ (fma (* 4.0 c) a 0) a) (/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
27×frac-times
21×clear-num
19×frac-2neg
14×associate-/l/
13×associate-/l*
10×associate-/r/ *-commutative
associate-*r/
prod-diff div-inv
flip3-- flip--
associate-*l*
un-div-inv
fma-neg associate-*l/
sub-neg
associate--l- neg-sub0 neg-mul-1 associate-*r* inv-pow
Counts
4 → 72
Calls
4 calls:
7.0ms
(/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
6.0ms
(- (* b b) (* (* 4.0 a) c))
6.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
11.0ms
(* (/ (fma (* 4.0 c) a 0) a) (/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0))

series415.0ms

Counts
4 → 12
Calls
4 calls:
100.0ms
(/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
49.0ms
(- (* b b) (* (* 4.0 a) c))
79.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
187.0ms
(* (/ (fma (* 4.0 c) a 0) a) (/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0))

simplify63.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
0487850
11970763
25002755

prune246.0ms

Filtered
84 candidates to 52 candidates (61.9%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New78684
Fresh7512
Picked101
Done000
Total861197

Merged error: 0.0b

Counts
97 → 11

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (fma b b (- (* (* a c) 4.0))))
0.2b
(/ 1 (- (- b) (sqrt (fma b b (- (* (* a c) 4.0))))))
0.3b
(- (- b) (sqrt (fma b b (- (* (* a c) 4.0)))))
0.3b
(* (/ (fma (* 4.0 c) a 0) a) (/ (/ 1 (- (- b) (sqrt (fma b b (- (* (* a c) 4.0)))))) 2.0))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
27×frac-times
21×clear-num
19×frac-2neg
14×associate-/l/
13×associate-/l*
10×associate-/r/
associate-*r/
div-inv
flip3-- flip--
un-div-inv
associate-*l/
associate--l- neg-sub0 neg-mul-1 sub-neg pow1/2 fma-neg associate-*r* associate-*l* *-commutative inv-pow
Counts
4 → 59
Calls
4 calls:
1.0ms
(sqrt (fma b b (- (* (* a c) 4.0))))
3.0ms
(/ 1 (- (- b) (sqrt (fma b b (- (* (* a c) 4.0))))))
3.0ms
(- (- b) (sqrt (fma b b (- (* (* a c) 4.0)))))
8.0ms
(* (/ (fma (* 4.0 c) a 0) a) (/ (/ 1 (- (- b) (sqrt (fma b b (- (* (* a c) 4.0)))))) 2.0))

series474.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(sqrt (fma b b (- (* (* a c) 4.0))))
108.0ms
(/ 1 (- (- b) (sqrt (fma b b (- (* (* a c) 4.0))))))
87.0ms
(- (- b) (sqrt (fma b b (- (* (* a c) 4.0)))))
196.0ms
(* (/ (fma (* 4.0 c) a 0) a) (/ (/ 1 (- (- b) (sqrt (fma b b (- (* (* a c) 4.0)))))) 2.0))

simplify50.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0411741
11548664
25001658

prune197.0ms

Filtered
71 candidates to 51 candidates (71.8%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New69271
Fresh1910
Picked011
Done000
Total701282

Merged error: 0.0b

Counts
82 → 12

regimes195.0ms

Accuracy

0% (0.3b remaining)

Error of 0.3b against oracle of 0.0b and baseline of 0.3b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02913
13713
23713

end0.0ms

sample1.4s

Algorithm
intervals
Results
316.0ms4497×body160valid
302.0ms16342×pre80true
283.0ms8342×body80nan
124.0ms3503×body80valid