Details

Time bar (total: 4.7s)

sample75.0ms

Algorithm
intervals
Results
17.0ms283×body80nan
15.0ms153×body160valid
15.0ms539×pre80true
5.0ms103×body80valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
09116
19116

prune8.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 29.5b

Counts
2 → 1

localize10.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
(/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) (* a 2.0))
29.5b
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
13×*-un-lft-identity
add-exp-log add-cbrt-cube
add-log-exp
add-cube-cbrt
times-frac sqrt-prod associate-/l* difference-of-squares
pow1
flip3-- flip--
distribute-lft-out--
cbrt-undiv sub-neg sqrt-div diff-log div-exp associate-/l/
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-sub prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 72
Calls
4 calls:
3.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))
3.0ms
(- (* b b) (* 4.0 (* a c)))
12.0ms
(/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) (* a 2.0))
7.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)

series65.0ms

Counts
4 → 12
Calls
4 calls:
14.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))
9.0ms
(- (* b b) (* 4.0 (* a c)))
26.0ms
(/ (- (sqrt (- (* b b) (* 4.0 (* a c)))) b) (* a 2.0))
15.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)

simplify51.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 0 (40.0ms)

IterNodesCost
049591319
149591319

prune133.0ms

Filtered
62 candidates to 84 candidates (-35.5%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New79584
Fresh000
Picked011
Done000
Total79685

Merged error: 0.4b

Counts
85 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
54×times-frac
51×*-un-lft-identity
29×add-sqr-sqrt add-cube-cbrt
21×associate-/l*
18×add-exp-log add-cbrt-cube
11×distribute-lft-out
add-log-exp
cbrt-undiv div-exp
associate-/r/
associate-/r*
pow1 flip3-+ flip-+ div-inv
div-sub distribute-frac-neg associate-/l/
flip3-- frac-2neg sub0-neg prod-exp clear-num flip-- cbrt-unprod
+-commutative sub-neg diff-log sum-log
Counts
4 → 119
Calls
4 calls:
5.0ms
(+ b (sqrt (- (* b b) (* 4.0 (* a c)))))
3.0ms
(- (* b b) (* 4.0 (* a c)))
12.0ms
(/ (/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (- (* b b) (* 4.0 (* a c)))))) (* a 2.0))
9.0ms
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (- (* b b) (* 4.0 (* a c))))))

series130.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(+ b (sqrt (- (* b b) (* 4.0 (* a c)))))
9.0ms
(- (* b b) (* 4.0 (* a c)))
45.0ms
(/ (/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (- (* b b) (* 4.0 (* a c)))))) (* a 2.0))
60.0ms
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (- (* b b) (* 4.0 (* a c))))))

simplify41.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 0 (25.0ms)

IterNodesCost
051033100

prune294.0ms

Filtered
98 candidates to 131 candidates (-33.7%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New11813131
Fresh404
Picked101
Done101
Total12413137

Merged error: 0.0b

Counts
137 → 13

localize23.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b)))))) (* a 2.0))
0.3b
(* c (* 4.0 (* a c)))
0.3b
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b))))))
0.4b
(/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b)))

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
63×times-frac
58×*-un-lft-identity
38×add-sqr-sqrt add-cube-cbrt
29×add-exp-log add-cbrt-cube
24×associate-/l*
13×pow1
10×distribute-lft-out
cbrt-undiv div-exp prod-exp associate-/r* associate-/r/ cbrt-unprod
pow-prod-down
div-inv associate-/l/
flip3-+ div-sub flip-+ add-log-exp
frac-2neg distribute-frac-neg associate-*l* clear-num
flip3-- sub0-neg flip--
associate-*r* *-commutative
Counts
4 → 148
Calls
4 calls:
19.0ms
(/ (/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b)))))) (* a 2.0))
7.0ms
(* c (* 4.0 (* a c)))
15.0ms
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b))))))
11.0ms
(/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b)))

series161.0ms

Counts
4 → 12
Calls
4 calls:
58.0ms
(/ (/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b)))))) (* a 2.0))
4.0ms
(* c (* 4.0 (* a c)))
73.0ms
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b))))))
25.0ms
(/ (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (+ (* 4.0 (* a c)) (* b b)))

simplify80.0ms

Algorithm
egg-herbie
Counts
160 → 160
Iterations

Useful iterations: 0 (51.0ms)

IterNodesCost
049245973
149245973

prune466.0ms

Filtered
119 candidates to 160 candidates (-34.5%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New1582160
Fresh21012
Picked101
Done000
Total16112173

Merged error: 0.0b

Counts
173 → 12

localize23.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ 1 (+ (* 4.0 (* a c)) (* b b)))
0.3b
(* c (* 4.0 (* a c)))
0.3b
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (* (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (/ 1 (+ (* 4.0 (* a c)) (* b b)))))))
0.4b
(* (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (/ 1 (+ (* 4.0 (* a c)) (* b b))))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
39×*-un-lft-identity
37×add-sqr-sqrt
32×times-frac
30×add-cube-cbrt
28×add-exp-log
22×add-cbrt-cube
16×pow1 associate-*r*
10×prod-exp
cbrt-unprod
pow-prod-down associate-/r*
associate-*l* associate-/r/ associate-/l*
div-exp
distribute-lft-out add-log-exp
cbrt-undiv flip3-- flip3-+ flip-- flip-+ div-inv unswap-sqr
frac-times rec-exp frac-2neg 1-exp associate-*l/ clear-num *-commutative associate-/l/
pow-flip sub0-neg div-sub associate-*r/ distribute-frac-neg un-div-inv inv-pow
Counts
4 → 133
Calls
4 calls:
7.0ms
(/ 1 (+ (* 4.0 (* a c)) (* b b)))
9.0ms
(* c (* 4.0 (* a c)))
7.0ms
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (* (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (/ 1 (+ (* 4.0 (* a c)) (* b b)))))))
14.0ms
(* (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (/ 1 (+ (* 4.0 (* a c)) (* b b))))

series115.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(/ 1 (+ (* 4.0 (* a c)) (* b b)))
4.0ms
(* c (* 4.0 (* a c)))
76.0ms
(/ (- 0 (* 4.0 (* a c))) (+ b (sqrt (* (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (/ 1 (+ (* 4.0 (* a c)) (* b b)))))))
22.0ms
(* (- (pow b 4) (* 4.0 (* a (* c (* 4.0 (* a c)))))) (/ 1 (+ (* 4.0 (* a c)) (* b b))))

simplify62.0ms

Algorithm
egg-herbie
Counts
145 → 145
Iterations

Useful iterations: 0 (44.0ms)

IterNodesCost
049833628
149833628

prune306.0ms

Filtered
100 candidates to 145 candidates (-45.0%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New1450145
Fresh01111
Picked011
Done000
Total14512157

Merged error: 0.0b

Counts
157 → 12

regimes273.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05141
15141

end0.0ms

sample2.2s

Algorithm
intervals
Results
564.0ms4493×body160valid
453.0ms16674×pre80true
412.0ms8674×body80nan
175.0ms3507×body80valid

Profiling

Loading profile data...