Details

Time bar (total: 5.5s)

sample43.0ms

Algorithm
intervals
Results
9.0ms42×body2560valid
7.0ms193×body80valid
4.0ms99×body80nan
3.0ms16×body1280valid
2.0ms17×body640valid
1.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

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.3b

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.6b
(- (* b b) (* (* 4.0 a) c))
1.3b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
20.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite105.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:
63.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
8.0ms
(- (* b b) (* (* 4.0 a) c))
21.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series310.0ms

Counts
4 → 12
Calls
4 calls:
111.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
45.0ms
(- (* b b) (* (* 4.0 a) c))
82.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
72.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

prune291.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 6.1b

localize16.0ms

Local error

Found 4 expressions with local error:

0.6b
(- (* b b) (* (* 4.0 a) c))
4.4b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
9.4b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
20.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite166.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:
8.0ms
(- (* b b) (* (* 4.0 a) c))
83.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
58.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
10.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series467.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(- (* b b) (* (* 4.0 a) c))
154.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
189.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
74.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify118.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (99.0ms)

IterNodesCost
06742663
134622412
250012406

prune456.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 6.0b

localize18.0ms

Local error

Found 4 expressions with local error:

9.2b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))))))
10.5b
(- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
20.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))
20.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite73.0ms

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
12×times-frac
10×fma-neg prod-diff
add-log-exp
pow1 add-exp-log distribute-lft-neg-in distribute-rgt-neg-in sqrt-prod add-cbrt-cube
difference-of-squares
expm1-log1p-u flip3-- sqrt-div associate-/r* flip-- log1p-expm1-u
associate-/l*
neg-mul-1 rem-sqrt-square sqrt-pow1 pow1/2 diff-log associate-/r/ associate-/l/
cbrt-undiv associate--l- neg-sub0 sub-neg frac-2neg flip3-+ div-exp neg-log clear-num flip-+ div-inv
Counts
4 → 108
Calls
4 calls:
32.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))))))
17.0ms
(- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series414.0ms

Counts
4 → 12
Calls
4 calls:
188.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))))))
77.0ms
(- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
74.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
74.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify91.0ms

Algorithm
egg-herbie
Counts
120 → 120
Iterations

Useful iterations: 2 (71.0ms)

IterNodesCost
04682302
121451877
250011813

prune421.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 6.0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.6b
(- (* b b) (* (* 4.0 a) c))
15.3b
(/ (* 2.0 a) (* 4.0 (* a c)))
20.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite276.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:
29.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
211.0ms
(- (* b b) (* (* 4.0 a) c))
20.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series210.0ms

Counts
4 → 12
Calls
4 calls:
76.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
48.0ms
(- (* b b) (* (* 4.0 a) c))
12.0ms
(/ (* 2.0 a) (* 4.0 (* a c)))
74.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify96.0ms

Algorithm
egg-herbie
Counts
162 → 162
Iterations

Useful iterations: 2 (73.0ms)

IterNodesCost
06103042
130781945
250021857

prune282.0ms

Pruning

9 alts after pruning (6 fresh and 3 done)

Merged error: 6.0b

regimes192.0ms

Accuracy

94.7% (1.3b remaining)

Error of 6.6b against oracle of 5.3b and baseline of 29.8b

bsearch137.0ms

Steps
ItersRangePoint
7
2.5938763934072053e+128
6.455437820905187e+129
4.0598649397170545e+128
6
-2.891186526843327e-238
-3.8162486351435958e-239
-5.269237409668851e-239
7
-3.11898899158337e+65
-2.3526715177838076e+63
-3.0609761389176743e+65

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04735
14735

end0.0ms

sample1.2s

Algorithm
intervals
Results
232.0ms1025×body2560valid
231.0ms5908×body80valid
149.0ms843×body1280valid
106.0ms2941×body80nan
68.0ms457×body640valid
32.0ms119×body5120valid
29.0ms228×body320valid
8.0ms101×body160valid