Details

Time bar (total: 5.9s)

sample36.0ms

Algorithm
intervals
Results
15.0ms282×body80valid
4.0ms94×body80nan

simplify15.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03918
18018
214318
317718
418918
519318
619318

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 21.1b

localize121.0ms

Local error

Found 4 expressions with local error:

1.0b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.6b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
23.9b
(sqrt (- (* b b) (* (* 4.0 a) c)))
23.9b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
60×prod-diff
58×*-un-lft-identity
56×add-sqr-sqrt
50×add-cube-cbrt
37×sqrt-prod
26×distribute-rgt-neg-in
24×distribute-lft-neg-in
12×add-log-exp
10×fma-def fma-neg
neg-mul-1
pow1
add-exp-log expm1-log1p-u sqrt-div add-cbrt-cube log1p-expm1-u
flip3-- flip--
neg-sub0 rem-sqrt-square sqrt-pow1 pow1/2 diff-log neg-log sum-log distribute-lft-out distribute-lft-out-- difference-of-squares
+-commutative associate--l- associate-+l- sub-neg flip3-+ flip-+
Counts
4 → 151
Calls
4 calls:
9.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
11.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series302.0ms

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

simplify68.0ms

Algorithm
egg-herbie
Counts
163 → 163
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
04183056
114712008
250011917

prune453.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 8.9b

localize121.0ms

Local error

Found 4 expressions with local error:

1.6b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.9b
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ (* a c) b)) b)))
5.5b
(/ (* a c) b)
23.9b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
62×*-un-lft-identity
60×prod-diff
55×add-sqr-sqrt
50×add-cube-cbrt
34×sqrt-prod
24×distribute-rgt-neg-in
21×distribute-lft-neg-in
14×add-exp-log add-cbrt-cube
10×fma-neg
times-frac associate-/r* add-log-exp
neg-mul-1
pow1
cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u distribute-lft-out
flip3-- frac-2neg sqrt-div diff-log prod-exp clear-num associate-/r/ flip-- cbrt-unprod div-inv associate-/l* distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 neg-log flip-+
Counts
4 → 159
Calls
4 calls:
16.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
12.0ms
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ (* a c) b)) b)))
5.0ms
(/ (* a c) b)
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series358.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
185.0ms
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ (* a c) b)) b)))
24.0ms
(/ (* a c) b)
69.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify79.0ms

Algorithm
egg-herbie
Counts
171 → 171
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
06103137
125642048
250011968

prune483.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 7.8b

localize126.0ms

Local error

Found 4 expressions with local error:

1.6b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.1b
(/ a (/ b c))
4.9b
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ a (/ b c))) b)))
23.9b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
102×*-un-lft-identity
95×add-sqr-sqrt
90×add-cube-cbrt
80×times-frac
60×prod-diff
34×sqrt-prod
24×distribute-rgt-neg-in
21×distribute-lft-neg-in
18×associate-/r*
14×add-exp-log add-cbrt-cube
10×fma-neg
add-log-exp
neg-mul-1
div-inv
pow1 cbrt-undiv div-exp
expm1-log1p-u log1p-expm1-u distribute-lft-out associate-/l*
associate-/r/
flip3-- frac-2neg sqrt-div diff-log clear-num flip-- distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 neg-log prod-exp cbrt-unprod flip-+
Counts
4 → 208
Calls
4 calls:
11.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
6.0ms
(/ a (/ b c))
15.0ms
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ a (/ b c))) b)))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series360.0ms

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

simplify107.0ms

Algorithm
egg-herbie
Counts
220 → 220
Iterations

Useful iterations: 2 (80.0ms)

IterNodesCost
08333504
135072369
250012332

prune741.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 7.8b

localize130.0ms

Local error

Found 4 expressions with local error:

4.9b
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ a (/ b c))) b)))
11.1b
(- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
23.9b
(sqrt (- (* b b) (* (* 4.0 a) c)))
23.9b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
17×add-sqr-sqrt
14×add-cube-cbrt
10×fma-neg prod-diff
add-exp-log add-cbrt-cube
distribute-rgt-neg-in add-log-exp
pow1 distribute-lft-neg-in sqrt-prod
times-frac associate-/r*
expm1-log1p-u sqrt-div log1p-expm1-u distribute-lft-out
flip3-- flip--
cbrt-undiv neg-mul-1 rem-sqrt-square sqrt-pow1 pow1/2 diff-log div-exp associate-/r/
associate--l- neg-sub0 sub-neg frac-2neg flip3-+ neg-log prod-exp clear-num cbrt-unprod flip-+ div-inv associate-/l* difference-of-squares
Counts
4 → 100
Calls
4 calls:
15.0ms
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ a (/ b c))) b)))
5.0ms
(- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
5.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series415.0ms

Counts
4 → 12
Calls
4 calls:
191.0ms
(/ (* 2.0 c) (+ (- b) (- (* 2.0 (/ a (/ b c))) b)))
81.0ms
(- (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
69.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
74.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify56.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
04371570
117711248
250011222

prune474.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 7.8b

regimes243.0ms

Accuracy

93.2% (1.0b remaining)

Error of 7.9b against oracle of 7.0b and baseline of 21.0b

bsearch148.0ms

Steps
ItersRangePoint
3
5.062782482725967e+112
6.853081242536654e+112
5.846038190143142e+112
9
-1.4509995558059801e+125
-2.2693772293991552e+117
-2.0236229236168638e+122

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
08173
18473
28573
38573

end0.0ms

sample869.0ms

Algorithm
intervals
Results
462.0ms8755×body80valid
140.0ms2908×body80nan