Details

Time bar (total: 6.8s)

sample47.0ms

Algorithm
intervals
Results
9.0ms38×body2560valid
7.0ms177×body80valid
5.0ms26×body1280valid
4.0ms112×body80nan
3.0ms20×body640valid
2.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.0b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite62.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:
39.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
3.0ms
(- (* b b) (* 4.0 (* a c)))
13.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series305.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
44.0ms
(- (* b b) (* 4.0 (* a c)))
81.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
72.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify52.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0438854
11658750
25001735

prune312.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 4.6b

localize15.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
5.2b
(/ (/ (+ 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))))))
22.0b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite109.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:
17.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
48.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (* 2.0 a))
28.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series493.0ms

Counts
4 → 12
Calls
4 calls:
80.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
154.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (* 2.0 a))
184.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify133.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
08185119
135603863
250013860

prune561.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 4.6b

localize19.0ms

Local error

Found 4 expressions with local error:

0.6b
(/ 1 (* (/ (* 2.0 a) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
1.0b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
13.1b
(/ (* 2.0 a) (* 4.0 (* a c)))
22.0b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite108.0ms

Algorithm
rewrite-expression-head
Rules
123×add-exp-log
63×add-cbrt-cube
60×prod-diff
57×prod-exp
53×add-sqr-sqrt
52×*-un-lft-identity
48×add-cube-cbrt
40×div-exp
34×sqrt-prod
25×cbrt-unprod
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
20×cbrt-undiv
10×fma-neg
pow1 rec-exp 1-exp add-log-exp
neg-mul-1
associate-/r/
expm1-log1p-u flip3-- times-frac flip-- log1p-expm1-u associate-/l*
frac-times pow-flip frac-2neg sqrt-div diff-log associate-*r/ clear-num associate-/r* div-inv distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 sub-neg rem-sqrt-square sqrt-pow1 pow1/2 pow-prod-down neg-log associate-*l/ inv-pow
Counts
4 → 193
Calls
4 calls:
68.0ms
(/ 1 (* (/ (* 2.0 a) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
17.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
8.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series314.0ms

Counts
4 → 12
Calls
4 calls:
147.0ms
(/ 1 (* (/ (* 2.0 a) (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
80.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
12.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify130.0ms

Algorithm
egg-herbie
Counts
205 → 205
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
09033937
145752570
250012568

prune367.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 4.6b

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (/ 1 (/ 2.0 4.0)) (/ 1 c))
0.2b
(- (* b b) (* 4.0 (* a c)))
1.0b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
22.0b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite331.0ms

Algorithm
rewrite-expression-head
Rules
1901×times-frac
856×add-sqr-sqrt
855×*-un-lft-identity
851×add-cube-cbrt
102×div-inv
87×add-exp-log
70×div-exp
61×prod-diff
44×associate-/l*
34×sqrt-prod
25×add-cbrt-cube
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
15×cbrt-undiv rec-exp 1-exp associate-/r/
13×associate-/r*
11×fma-neg
10×add-log-exp
neg-mul-1
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 pow1/2 neg-log clear-num associate-/l/
Counts
4 → 800
Calls
4 calls:
228.0ms
(/ (/ 1 (/ 2.0 4.0)) (/ 1 c))
3.0ms
(- (* b b) (* 4.0 (* a c)))
17.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
5.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series212.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(/ (/ 1 (/ 2.0 4.0)) (/ 1 c))
47.0ms
(- (* b b) (* 4.0 (* a c)))
75.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
74.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify177.0ms

Algorithm
egg-herbie
Counts
812 → 812
Iterations

Useful iterations: 1 (72.0ms)

IterNodesCost
0414111665
150019902

prune1.5s

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 4.6b

regimes142.0ms

Accuracy

95% (1.2b remaining)

Error of 6.8b against oracle of 5.5b and baseline of 30.4b

bsearch174.0ms

Steps
ItersRangePoint
9
2.6683347110001497e+63
3.895668027475672e+69
6.6664567809045535e+68
6
-8.36501767772797e-260
-8.1135434350231975e-261
-2.3757722518657493e-260
9
-1.2294333374423815e+100
-1.4471431684397531e+91
-4.301018409236461e+98

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04727
14727

end0.0ms

sample1.2s

Algorithm
intervals
Results
264.0ms1085×body2560valid
242.0ms5822×body80valid
170.0ms888×body1280valid
115.0ms2903×body80nan
67.0ms453×body640valid
29.0ms99×body5120valid
28.0ms244×body320valid
9.0ms123×body160valid