Details

Time bar (total: 7.8s)

sample74.0ms

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

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

prune7.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))))

rewrite53.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:
32.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
11.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
3.0ms
(- (* b b) (* 4.0 (* a c)))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series64.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
15.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
11.0ms
(- (* b b) (* 4.0 (* a c)))
15.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify47.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0438854
11658750
25001735

prune794.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 5.6b

localize15.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))))

rewrite98.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)))))
40.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))))))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series126.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
39.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))) (* 2.0 a))
56.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
15.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify131.0ms

Algorithm
egg-herbie
Counts
244 → 244
Iterations

Useful iterations: 2 (93.0ms)

IterNodesCost
08185119
135603863
250013860

prune1.7s

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 5.5b

localize13.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))))

rewrite72.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:
51.0ms
(* (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (/ 1 (* 2.0 a)))
11.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
3.0ms
(- (* b b) (* 4.0 (* a c)))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series61.0ms

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

simplify63.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
05151011
12277856
25001843

prune831.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 5.5b

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (/ (* 2.0 a) (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
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))))

rewrite47.0ms

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

series76.0ms

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

simplify70.0ms

Algorithm
egg-herbie
Counts
146 → 146
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
05561665
126641442
250021371

prune917.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 5.5b

regimes331.0ms

Accuracy

81.7% (4.9b remaining)

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

bsearch87.0ms

Steps
ItersRangePoint
10
2.922623675251237e-45
3.998186072825638e-35
8.679707852111266e-40
8
-6.30521239297407e+53
-2.0681333037085905e+50
-4.837192574744688e+53

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03716
13716

end0.0ms

sample2.1s

Algorithm
intervals
Results
505.0ms1039×body2560valid
478.0ms5877×body80valid
362.0ms910×body1280valid
225.0ms2874×body80nan
147.0ms463×body640valid
64.0ms112×body5120valid
54.0ms230×body320valid
16.0ms103×body160valid