Details

Time bar (total: 8.4s)

sample75.0ms

Algorithm
intervals
Results
16.0ms35×body2560valid
15.0ms189×body80valid
10.0ms27×body1280valid
8.0ms101×body80nan
5.0ms17×body640valid
1.0msbody320valid
1.0msbody160valid
1.0msbody5120valid

simplify15.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

prune8.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.8b

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.7b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.8b
(- (* b b) (* (* 4.0 a) c))
24.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

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

series71.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
17.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
10.0ms
(- (* b b) (* (* 4.0 a) c))
20.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify59.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
0438854
11702750
25001735

prune909.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 5.6b

localize20.0ms

Local error

Found 4 expressions with local error:

0.9b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.8b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
9.7b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
24.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite105.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))))
46.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
27.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
5.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series141.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
43.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
62.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
16.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify158.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (120.0ms)

IterNodesCost
08295119
137633863
250013860

prune2.0s

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 5.5b

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (/ 1 (* 2.0 a)))
0.7b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.8b
(- (* b b) (* (* 4.0 a) c))
24.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite78.0ms

Algorithm
rewrite-expression-head
Rules
23×add-exp-log
19×*-un-lft-identity
14×add-sqr-sqrt
13×add-cbrt-cube
11×add-cube-cbrt
10×fma-def prod-exp add-log-exp
pow1 associate-*r*
distribute-rgt-neg-in associate-*l*
expm1-log1p-u div-exp cbrt-unprod log1p-expm1-u distribute-lft-out
distribute-lft-neg-in flip3-+ times-frac sqrt-prod flip-+
cbrt-undiv frac-times rec-exp flip3-- sqrt-div 1-exp associate-*l/ sum-log flip--
+-commutative neg-sub0 associate-+l- neg-mul-1 sub-neg rem-sqrt-square sqrt-pow1 pow1/2 fma-neg diff-log associate-*r/ prod-diff pow-prod-down neg-log un-div-inv *-commutative div-inv unswap-sqr
Counts
4 → 100
Calls
4 calls:
55.0ms
(* (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (/ 1 (* 2.0 a)))
12.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
3.0ms
(- (* b b) (* (* 4.0 a) c))
5.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series68.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(* (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (/ 1 (* 2.0 a)))
17.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
10.0ms
(- (* b b) (* (* 4.0 a) c))
17.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify71.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
05141011
12322856
25001843

prune937.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 5.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- (sqrt (- (* b b) (* (* 4.0 a) c))) b) (* 2.0 a))
0.7b
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
0.8b
(- (* b b) (* (* 4.0 a) c))
24.2b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite77.0ms

Algorithm
rewrite-expression-head
Rules
34×add-sqr-sqrt
27×*-un-lft-identity
21×add-cube-cbrt
19×prod-diff
18×sqrt-prod
add-exp-log add-cbrt-cube
add-log-exp
fma-neg
times-frac associate-/l* difference-of-squares
pow1
expm1-log1p-u flip3-- flip-- log1p-expm1-u
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 → 106
Calls
4 calls:
44.0ms
(/ (- (sqrt (- (* b b) (* (* 4.0 a) c))) b) (* 2.0 a))
22.0ms
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
3.0ms
(- (* b b) (* (* 4.0 a) c))
5.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series66.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(/ (- (sqrt (- (* b b) (* (* 4.0 a) c))) b) (* 2.0 a))
17.0ms
(- (sqrt (- (* b b) (* (* 4.0 a) c))) b)
10.0ms
(- (* b b) (* (* 4.0 a) c))
16.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify72.0ms

Algorithm
egg-herbie
Counts
118 → 118
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
04851246
119211004
25002972

prune763.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 5.5b

regimes392.0ms

Accuracy

82% (4.8b remaining)

Error of 10.6b against oracle of 5.8b and baseline of 32.4b

bsearch85.0ms

Steps
ItersRangePoint
10
2.922623675251237e-45
3.998186072825638e-35
8.679707852111266e-40
8
-2.75227652547193e+57
-2.8729039666377685e+54
-2.237522594933402e+57

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03114
13114

end0.0ms

sample2.1s

Algorithm
intervals
Results
504.0ms1039×body2560valid
471.0ms5877×body80valid
361.0ms910×body1280valid
220.0ms2874×body80nan
147.0ms463×body640valid
66.0ms112×body5120valid
56.0ms230×body320valid
18.0ms103×body160valid