Details

Time bar (total: 4.9s)

sample44.0ms

Algorithm
intervals
Results
8.0ms34×body2560valid
7.0ms172×body80valid
6.0ms32×body1280valid
5.0ms16×body640valid
3.0ms79×body80nan
2.0msbody5120valid
1.0msbody320valid
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: 35.6b

Counts
2 → 1

localize12.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 b) (* (* 4.0 a) c))
1.2b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
23.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
11×add-sqr-sqrt
10×add-cube-cbrt fma-def add-log-exp
add-exp-log add-cbrt-cube
distribute-rgt-neg-in distribute-lft-out
pow1 times-frac associate-/l*
expm1-log1p-u log1p-expm1-u
distribute-lft-neg-in sqrt-prod
cbrt-undiv neg-sub0 associate-+l- flip3-- flip3-+ sqrt-div div-exp sum-log flip-- flip-+ associate-/l/
+-commutative neg-mul-1 sub-neg rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 fma-neg diff-log div-sub prod-diff neg-log prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 90
Calls
4 calls:
11.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
4.0ms
(- (* b b) (* (* 4.0 a) c))
8.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series289.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
45.0ms
(- (* b b) (* (* 4.0 a) c))
76.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
68.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify47.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0438854
11702750
25001735

prune282.0ms

Filtered
102 candidates to 82 candidates (80.4%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New9210102
Fresh000
Picked101
Done000
Total9310103

Merged error: 6.1b

Counts
103 → 10

localize19.0ms

Local error

Found 4 expressions with local error:

0.8b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
3.6b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
8.8b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
23.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite53.0ms

Algorithm
rewrite-expression-head
Rules
125×add-sqr-sqrt
124×*-un-lft-identity
90×times-frac
80×add-cube-cbrt
60×prod-diff
44×sqrt-prod
32×distribute-rgt-neg-in
30×associate-/l*
22×distribute-lft-out-- difference-of-squares
21×distribute-lft-neg-in
18×add-exp-log add-cbrt-cube
10×fma-neg
associate-/r* add-log-exp
cbrt-undiv neg-mul-1 div-exp
associate-/r/
pow1 flip3-- flip--
expm1-log1p-u log1p-expm1-u div-inv
associate-/l/
frac-2neg sqrt-div diff-log prod-exp clear-num cbrt-unprod
associate--l- neg-sub0 sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 neg-log flip-+
Counts
4 → 232
Calls
4 calls:
10.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
17.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
12.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series465.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))
174.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
70.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify137.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (101.0ms)

IterNodesCost
08295119
137633863
250013860

prune538.0ms

Filtered
244 candidates to 141 candidates (57.8%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New2413244
Fresh459
Picked011
Done000
Total2459254

Merged error: 6.0b

Counts
254 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

0.8b
(- (* b b) (* (* 4.0 a) c))
0.8b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
13.5b
(/ (* 2.0 a) (* 4.0 (* a c)))
23.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
61×prod-diff
51×add-sqr-sqrt
50×*-un-lft-identity
46×add-cube-cbrt
34×sqrt-prod
25×add-exp-log add-cbrt-cube
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
11×fma-neg
10×add-log-exp
prod-exp cbrt-unprod
neg-mul-1
cbrt-undiv div-exp
pow1
expm1-log1p-u log1p-expm1-u
flip3-- diff-log flip--
sub-neg sqrt-div distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 rem-sqrt-square frac-2neg sqrt-pow1 times-frac pow1/2 neg-log clear-num associate-/r* div-inv associate-/l*
Counts
4 → 150
Calls
4 calls:
4.0ms
(- (* b b) (* (* 4.0 a) c))
10.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
8.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series206.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(- (* b b) (* (* 4.0 a) c))
77.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
11.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
71.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify94.0ms

Algorithm
egg-herbie
Counts
162 → 162
Iterations

Useful iterations: 2 (73.0ms)

IterNodesCost
06103042
130781945
250021857

prune297.0ms

Filtered
162 candidates to 79 candidates (48.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1611162
Fresh167
Picked101
Done011
Total1638171

Merged error: 6.0b

Counts
171 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ 1 (* (* (/ 2.0 4.0) (/ 1 c)) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
0.8b
(- (* b b) (* (* 4.0 a) c))
0.8b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
23.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
113×add-exp-log
61×prod-diff
53×add-sqr-sqrt
52×*-un-lft-identity
51×prod-exp
48×add-cube-cbrt
44×div-exp
34×sqrt-prod
29×add-cbrt-cube
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
16×rec-exp 1-exp
14×associate-/r/
11×pow1 frac-times fma-neg
10×cbrt-undiv add-log-exp
cbrt-unprod
flip3-- flip--
neg-mul-1 associate-*l/
associate-*r/
expm1-log1p-u log1p-expm1-u
pow-flip times-frac diff-log pow-prod-down un-div-inv associate-/l*
sub-neg sqrt-div distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 neg-log clear-num associate-/r* div-inv inv-pow
Counts
4 → 196
Calls
4 calls:
19.0ms
(/ 1 (* (* (/ 2.0 4.0) (/ 1 c)) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
4.0ms
(- (* b b) (* (* 4.0 a) c))
10.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series355.0ms

Counts
4 → 12
Calls
4 calls:
167.0ms
(/ 1 (* (* (/ 2.0 4.0) (/ 1 c)) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
43.0ms
(- (* b b) (* (* 4.0 a) c))
74.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
70.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify108.0ms

Algorithm
egg-herbie
Counts
208 → 208
Iterations

Useful iterations: 2 (78.0ms)

IterNodesCost
09213920
139652595
250012555

prune344.0ms

Filtered
208 candidates to 96 candidates (46.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2071208
Fresh156
Picked011
Done101
Total2097216

Merged error: 6.0b

Counts
216 → 7

regimes148.0ms

Accuracy

95.3% (1.1b remaining)

Error of 6.5b against oracle of 5.4b and baseline of 29.1b

bsearch183.0ms

Steps
ItersRangePoint
9
4.546949039871578e+116
7.0067478635952275e+121
3.8636444360254825e+121
7
-6.311599190677229e-174
-9.330924568125125e-176
-8.277677308210192e-175
9
-1.8864815038392082e+94
-1.5243980513895428e+89
-6.875360452843506e+92

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04727
14727

end0.0ms

sample1.2s

Algorithm
intervals
Results
255.0ms1052×body2560valid
230.0ms5820×body80valid
179.0ms891×body1280valid
104.0ms2865×body80nan
70.0ms469×body640valid
32.0ms111×body5120valid
29.0ms235×body320valid
9.0ms122×body160valid