Details

Time bar (total: 13.7s)

sample60.0ms

Algorithm
intervals
Results
14.0ms260×body80nan
12.0ms164×body160valid
10.0ms516×pre80true
5.0ms44×body320valid
2.0ms48×body80valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0249
1459
2799
3979
41059
51059

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

Counts
2 → 1

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite130.0ms

Algorithm
rewrite-expression-head
Rules
139×add-sqr-sqrt
116×*-un-lft-identity
60×times-frac
42×unswap-sqr
36×add-cube-cbrt associate-*l*
30×difference-of-squares
28×distribute-lft-out
24×sqrt-prod
18×associate-*r*
14×distribute-rgt-neg-in
12×associate-/r* *-commutative distribute-lft-out--
10×add-log-exp
add-exp-log add-cbrt-cube
swap-sqr
pow1 associate-/l*
cbrt-undiv neg-sub0 associate-+l- flip3-- flip3-+ sqrt-div div-exp sum-log flip-- flip-+ associate-/l/
+-commutative sub-neg rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 diff-log div-sub neg-log prod-exp clear-num cbrt-unprod div-inv
Counts
4 → 178
Calls
4 calls:
22.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
42.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
22.0ms
(- (* b b) (* (* 4.0 a) c))
36.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

series312.0ms

Counts
4 → 12
Calls
4 calls:
73.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
108.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
49.0ms
(- (* b b) (* (* 4.0 a) c))
82.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

simplify77.0ms

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 2 (56.0ms)

IterNodesCost
06282253
125172157
250012140

prune501.0ms

Filtered
190 candidates to 109 candidates (57.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1846190
Fresh000
Picked101
Done000
Total1856191

Merged error: 0.2b

Counts
191 → 6

localize19.0ms

Local error

Found 4 expressions with local error:

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

rewrite331.0ms

Algorithm
rewrite-expression-head
Rules
1801×*-un-lft-identity
1346×times-frac
946×add-sqr-sqrt
408×distribute-lft-out--
400×distribute-lft-out
385×add-cube-cbrt
377×associate-*l*
217×difference-of-squares
168×associate-*r*
101×distribute-rgt-neg-in sqrt-prod
74×unswap-sqr
69×associate-/l*
59×*-commutative
28×associate-/r/
26×associate-/r*
23×associate-/l/
18×add-exp-log add-cbrt-cube
16×flip3-- flip--
15×div-inv
10×add-log-exp
cbrt-undiv div-exp
pow1
frac-2neg diff-log div-sub swap-sqr clear-num
associate-+l- sub-neg flip3-+ prod-exp cbrt-unprod flip-+
associate--l- neg-sub0 neg-log
Counts
4 → 896
Calls
4 calls:
37.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
21.0ms
(- (* b b) (* (* 4.0 a) c))
109.0ms
(/ (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
84.0ms
(/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

series416.0ms

Counts
4 → 12
Calls
4 calls:
77.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
44.0ms
(- (* b b) (* (* 4.0 a) c))
125.0ms
(/ (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
170.0ms
(/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

simplify234.0ms

Algorithm
egg-herbie
Counts
908 → 908
Iterations

Useful iterations: 1 (34.0ms)

IterNodesCost
0174024064
1500222948

prune1.3s

Filtered
908 candidates to 283 candidates (31.2%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New9017908
Fresh415
Picked101
Done000
Total9068914

Merged error: 0.0b

Counts
914 → 8

localize25.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (* (* 4.0 a) c))
0.1b
(- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))
0.3b
(/ (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))) (* 2.0 a))
0.3b
(/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c)))))))

rewrite347.0ms

Algorithm
rewrite-expression-head
Rules
1969×*-un-lft-identity
1528×times-frac
1271×add-sqr-sqrt
456×distribute-lft-out
432×associate-*l*
430×distribute-lft-out--
425×add-cube-cbrt
303×difference-of-squares
224×sqrt-prod
195×associate-*r*
171×unswap-sqr
101×distribute-rgt-neg-in
76×associate-/l*
65×*-commutative
28×associate-/r* associate-/r/
24×associate-/l/
18×add-exp-log add-cbrt-cube
15×flip3-- flip-- div-inv
10×pow1
add-log-exp
cbrt-undiv div-exp
rem-sqrt-square frac-2neg sqrt-pow1 div-sub pow-prod-down clear-num
associate-+l- flip3-+ diff-log prod-exp cbrt-unprod flip-+
associate--l- neg-sub0 sub-neg pow1/2 neg-log
Counts
4 → 1000
Calls
4 calls:
8.0ms
(sqrt (* (* 4.0 a) c))
42.0ms
(- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))
114.0ms
(/ (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))) (* 2.0 a))
87.0ms
(/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c)))))))

series1.7s

Counts
4 → 12
Calls
4 calls:
123.0ms
(sqrt (* (* 4.0 a) c))
306.0ms
(- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))
591.0ms
(/ (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))) (* 2.0 a))
649.0ms
(/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c)))))))

simplify315.0ms

Algorithm
egg-herbie
Counts
1012 → 1012
Iterations

Useful iterations: 1 (37.0ms)

IterNodesCost
0202835570
1500134803

prune1.8s

Filtered
1012 candidates to 340 candidates (33.6%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New100841012
Fresh347
Picked101
Done000
Total101281020

Merged error: 0b

Counts
1020 → 8

localize23.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (* (* 4.0 a) c))
0.1b
(/ 1 (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c)))))))
0.1b
(- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))
0.3b
(* (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) a) (/ (/ 1 (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))) 2.0))

rewrite348.0ms

Algorithm
rewrite-expression-head
Rules
1298×*-un-lft-identity
1029×add-sqr-sqrt
891×associate-/l*
750×frac-times
605×times-frac
442×add-cube-cbrt
337×associate-/r*
329×associate-/l/
264×distribute-lft-out--
234×difference-of-squares
216×distribute-lft-out
178×sqrt-prod
148×associate-*l*
100×associate-*r*
93×unswap-sqr
86×clear-num
84×frac-2neg
78×distribute-rgt-neg-in
51×flip3-+ flip-+
50×associate-*r/
43×add-exp-log
40×associate-/r/
27×add-cbrt-cube
23×div-inv
21×flip3-- flip--
19×div-exp
15×associate-*l/
13×pow1
10×cbrt-undiv prod-exp
add-log-exp
un-div-inv cbrt-unprod
pow-prod-down
rem-sqrt-square rec-exp sqrt-pow1 1-exp *-commutative
diff-log
associate--l- neg-sub0 sub-neg pow-flip pow1/2 neg-log inv-pow
Counts
4 → 1081
Calls
4 calls:
8.0ms
(sqrt (* (* 4.0 a) c))
43.0ms
(/ 1 (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c)))))))
38.0ms
(- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))
158.0ms
(* (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) a) (/ (/ 1 (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))) 2.0))

series1.5s

Counts
4 → 12
Calls
4 calls:
114.0ms
(sqrt (* (* 4.0 a) c))
487.0ms
(/ 1 (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c)))))))
288.0ms
(- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))
599.0ms
(* (/ (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c))) a) (/ (/ 1 (- (- b) (sqrt (* (+ (sqrt (* (* 4.0 a) c)) b) (- b (sqrt (* (* 4.0 a) c))))))) 2.0))

simplify347.0ms

Algorithm
egg-herbie
Counts
1093 → 1093
Iterations

Useful iterations: 1 (67.0ms)

IterNodesCost
0360833914
1500132195

prune2.2s

Filtered
1093 candidates to 427 candidates (39.1%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New109031093
Fresh347
Picked101
Done000
Total109471101

Merged error: 0b

Counts
1101 → 7

regimes135.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03522
13522

end0.0ms

sample1.6s

Algorithm
intervals
Results
380.0ms4911×body160valid
313.0ms8410×body80nan
309.0ms16410×pre80true
153.0ms1345×body320valid
72.0ms1744×body80valid