Details

Time bar (total: 6.6s)

sample42.0ms

Algorithm
intervals
Results
7.0ms189×body80valid
7.0ms37×body1280valid
6.0ms27×body2560valid
3.0ms98×body80nan
2.0ms16×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

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.7b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.9b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.2b
(- (* b b) (* (* 4.0 a) c))
20.8b
(sqrt (- (* b b) (* (* 4.0 a) c)))

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

series265.0ms

Counts
4 → 12
Calls
4 calls:
94.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
69.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
39.0ms
(- (* b b) (* (* 4.0 a) c))
62.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify49.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0438854
11702750
25001735

prune282.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 4.5b

localize16.0ms

Local error

Found 4 expressions with local error:

1.2b
(- (* b b) (* (* 4.0 a) c))
2.4b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
9.2b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
20.8b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite164.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:
9.0ms
(- (* b b) (* (* 4.0 a) c))
81.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
57.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series393.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(- (* b b) (* (* 4.0 a) c))
131.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
161.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
60.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify120.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
06742663
134622412
250012406

prune443.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 4.5b

localize20.0ms

Local error

Found 4 expressions with local error:

7.1b
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
8.0b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))

rewrite62.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
10×fma-neg prod-diff
times-frac
add-log-exp
add-exp-log cbrt-prod distribute-lft-neg-in distribute-rgt-neg-in add-cbrt-cube
pow1 expm1-log1p-u cbrt-div flip3-- flip-- log1p-expm1-u
associate-/r* associate-/l*
neg-mul-1 pow1/3 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 → 99
Calls
4 calls:
14.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
32.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
8.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

series800.0ms

Counts
4 → 12
Calls
4 calls:
77.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
550.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
86.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
85.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

simplify113.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (92.0ms)

IterNodesCost
07002441
133722185
250012183

prune486.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 4.5b

localize21.0ms

Local error

Found 4 expressions with local error:

7.1b
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
7.9b
(* (+ 0 (* 4.0 (* a c))) (/ 1 (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))

rewrite76.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
21×*-un-lft-identity
20×add-cube-cbrt
15×associate-*r*
13×add-exp-log
11×times-frac
10×fma-neg prod-diff
add-cbrt-cube
add-log-exp
pow1 cbrt-prod distribute-lft-neg-in distribute-rgt-neg-in
expm1-log1p-u cbrt-div flip3-- prod-exp flip-- log1p-expm1-u
associate-*l* unswap-sqr
frac-times neg-mul-1 flip3-+ pow1/3 diff-log div-exp associate-*l/ associate-/r/ cbrt-unprod flip-+
cbrt-undiv associate--l- neg-sub0 sub-neg rec-exp 1-exp associate-*r/ pow-prod-down neg-log un-div-inv *-commutative div-inv
Counts
4 → 110
Calls
4 calls:
14.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
47.0ms
(* (+ 0 (* 4.0 (* a c))) (/ 1 (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

series796.0ms

Counts
4 → 12
Calls
4 calls:
80.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
543.0ms
(* (+ 0 (* 4.0 (* a c))) (/ 1 (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))))
85.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
87.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

simplify168.0ms

Algorithm
egg-herbie
Counts
122 → 122
Iterations

Useful iterations: 1 (21.0ms)

IterNodesCost
08092545
144622237
250012237

prune506.0ms

Pruning

9 alts after pruning (6 fresh and 3 done)

Merged error: 4.5b

regimes230.0ms

Accuracy

86.1% (3.7b remaining)

Error of 9.3b against oracle of 5.6b and baseline of 32.0b

bsearch174.0ms

Steps
ItersRangePoint
9
1.074100872074174e-14
9.291103138484119e-07
9.167997088350656e-07
7
2.2469575477562033e-86
4.474843512735295e-85
2.2742398392973687e-86
9
-3.3947692407777386e+132
-4.222463702829868e+123
-8.50694614622187e+125

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05029
15229
25229

end0.0ms

sample1.2s

Algorithm
intervals
Results
248.0ms1096×body2560valid
220.0ms5864×body80valid
164.0ms913×body1280valid
105.0ms3005×body80nan
70.0ms459×body640valid
28.0ms101×body5120valid
22.0ms212×body320valid
9.0ms125×body160valid