Details

Time bar (total: 5.1s)

sample52.0ms

Algorithm
intervals
Results
10.0ms194×body80valid
10.0ms33×body2560valid
6.0ms23×body1280valid
6.0ms96×body80nan
4.0ms18×body640valid
1.0msbody320valid
1.0msbody5120valid
0.0msbody160valid

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: 34.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.9b
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
1.0b
(- (* b b) (* 4.0 (* a c)))
25.3b
(sqrt (- (* b b) (* 4.0 (* a c))))

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

series301.0ms

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

simplify49.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0438854
11658750
25001735

prune279.0ms

Filtered
102 candidates to 82 candidates (80.4%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New948102
Fresh000
Picked101
Done000
Total958103

Merged error: 6.8b

Counts
103 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (* b b) (* 4.0 (* a c)))
2.8b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (* 2.0 a))
9.6b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
25.3b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
90×times-frac
80×add-sqr-sqrt
79×*-un-lft-identity
39×add-cube-cbrt
30×associate-/l*
20×distribute-lft-out-- difference-of-squares
18×add-exp-log add-cbrt-cube
13×sqrt-prod
10×distribute-rgt-neg-in
associate-/r*
cbrt-undiv div-exp
associate-/r/ add-log-exp
pow1 flip3-- flip--
expm1-log1p-u log1p-expm1-u div-inv
associate-/l/
frac-2neg sqrt-div prod-exp clear-num cbrt-unprod
sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 fma-neg diff-log prod-diff flip-+
Counts
4 → 158
Calls
4 calls:
4.0ms
(- (* b b) (* 4.0 (* a c)))
16.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))))

series454.0ms

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

simplify112.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (89.0ms)

IterNodesCost
06652663
132592412
250012405

prune388.0ms

Filtered
170 candidates to 117 candidates (68.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1664170
Fresh347
Picked101
Done000
Total1708178

Merged error: 6.7b

Counts
178 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.5b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
1.0b
(- (* b b) (* 4.0 (* a c)))
13.0b
(/ (* 2.0 a) (* 4.0 (* a c)))
25.3b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite35.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:
10.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
4.0ms
(- (* b b) (* 4.0 (* a c)))
7.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:
78.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
48.0ms
(- (* b b) (* 4.0 (* a c)))
11.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
68.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify88.0ms

Algorithm
egg-herbie
Counts
162 → 162
Iterations

Useful iterations: 2 (66.0ms)

IterNodesCost
05973032
128321946
250021857

prune263.0ms

Filtered
162 candidates to 79 candidates (48.8%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1611162
Fresh167
Picked101
Done000
Total1637170

Merged error: 6.7b

Counts
170 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (/ 0.5 c) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
0.5b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
1.0b
(- (* b b) (* 4.0 (* a c)))
25.3b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite57.0ms

Algorithm
rewrite-expression-head
Rules
181×prod-diff
144×add-sqr-sqrt
138×*-un-lft-identity
130×add-cube-cbrt
95×sqrt-prod
62×distribute-rgt-in distribute-lft-in
59×distribute-rgt-neg-in
57×distribute-lft-neg-in
19×neg-mul-1
13×associate-*l*
11×fma-neg
10×times-frac add-log-exp
add-exp-log add-cbrt-cube
pow1 associate-*r*
flip3-- flip--
expm1-log1p-u sub-neg log1p-expm1-u distribute-lft-out-- difference-of-squares
diff-log
frac-times sqrt-div associate-*r/ prod-exp cbrt-unprod unswap-sqr
cbrt-undiv associate--l- neg-sub0 rem-sqrt-square sqrt-pow1 pow1/2 div-exp pow-prod-down neg-log associate-*l/ *-commutative div-inv
Counts
4 → 289
Calls
4 calls:
19.0ms
(* (/ 0.5 c) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
14.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
4.0ms
(- (* b b) (* 4.0 (* a c)))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series308.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(* (/ 0.5 c) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
78.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
43.0ms
(- (* b b) (* 4.0 (* a c)))
73.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify126.0ms

Algorithm
egg-herbie
Counts
301 → 301
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
09288466
135295475
250025159

prune323.0ms

Filtered
301 candidates to 106 candidates (35.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New2992301
Fresh066
Picked011
Done000
Total2999308

Merged error: 6.7b

Counts
308 → 9

regimes179.0ms

Accuracy

92% (1.9b remaining)

Error of 7.4b against oracle of 5.4b and baseline of 29.3b

bsearch184.0ms

Steps
ItersRangePoint
7
0.008549975533169097
1.4731263457460937
1.4443031837246074
8
-1.7832961101597004e-170
-3.712432627983841e-174
-3.760762857445126e-174
9
-8.023912243850115e+115
-1.183450711292762e+109
-1.173641368412307e+114

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04726
14726

end0.0ms

sample1.5s

Algorithm
intervals
Results
347.0ms1092×body2560valid
329.0ms5847×body80valid
222.0ms875×body1280valid
158.0ms2883×body80nan
95.0ms451×body640valid
42.0ms111×body5120valid
36.0ms233×body320valid
12.0ms118×body160valid