Details

Time bar (total: 4.9s)

sample42.0ms

Algorithm
intervals
Results
8.0ms34×body2560valid
7.0ms186×body80valid
6.0ms32×body1280valid
3.0ms94×body80nan
3.0ms17×body640valid
1.0msbody320valid
0.0msbody160valid
0.0msbody5120valid

simplify16.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0299
1659
21219
31519
41609
51649
61649

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.2b

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
0.8b
(- (* 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))))

rewrite41.0ms

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

series288.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
43.0ms
(- (* b b) (* 4.0 (* a c)))
77.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
73.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify83.0ms

Algorithm
egg-herbie
Counts
169 → 169
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
05903305
121012212
250022128

prune365.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 7.3b

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
89×add-sqr-sqrt
88×*-un-lft-identity
68×add-cube-cbrt
67×times-frac
61×prod-diff
38×sqrt-prod
26×distribute-rgt-neg-in
25×add-exp-log
21×distribute-lft-neg-in
13×associate-/r* add-cbrt-cube
12×div-exp
11×fma-neg
10×distribute-lft-out-- add-log-exp difference-of-squares
associate-/r/
neg-mul-1 flip3-- flip--
pow1
cbrt-undiv div-inv
expm1-log1p-u log1p-expm1-u
rec-exp diff-log 1-exp prod-exp associate-/l*
sub-neg sqrt-div
associate--l- neg-sub0 rem-sqrt-square pow-flip frac-2neg sqrt-pow1 pow1/2 neg-log clear-num cbrt-unprod inv-pow
Counts
4 → 205
Calls
4 calls:
14.0ms
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
4.0ms
(- (* 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))))

series305.0ms

Counts
4 → 12
Calls
4 calls:
110.0ms
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
49.0ms
(- (* b b) (* 4.0 (* a c)))
78.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
68.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify100.0ms

Algorithm
egg-herbie
Counts
217 → 217
Iterations

Useful iterations: 2 (70.0ms)

IterNodesCost
07184221
130992976
250012863

prune385.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 7.2b

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.8b
(- (* 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))))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
61×prod-diff
60×add-sqr-sqrt
57×*-un-lft-identity
49×add-cube-cbrt
35×sqrt-prod
23×add-exp-log distribute-rgt-neg-in
21×distribute-lft-neg-in
13×add-cbrt-cube
11×fma-neg
10×prod-exp add-log-exp
pow1 neg-mul-1 associate-*r* associate-*l*
flip3-- flip--
expm1-log1p-u div-exp cbrt-unprod log1p-expm1-u distribute-lft-out-- difference-of-squares
times-frac diff-log
cbrt-undiv frac-times sub-neg rec-exp sqrt-div 1-exp associate-*l/
associate--l- neg-sub0 rem-sqrt-square sqrt-pow1 pow1/2 associate-*r/ pow-prod-down neg-log un-div-inv *-commutative div-inv unswap-sqr
Counts
4 → 165
Calls
4 calls:
16.0ms
(* (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (/ 1 (* 2.0 a)))
4.0ms
(- (* b b) (* 4.0 (* a c)))
10.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series295.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(* (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (/ 1 (* 2.0 a)))
43.0ms
(- (* b b) (* 4.0 (* a c)))
78.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
73.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify86.0ms

Algorithm
egg-herbie
Counts
177 → 177
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
06563422
125942238
250012193

prune343.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 7.2b

localize29.0ms

Local error

Found 4 expressions with local error:

24.6b
(cbrt (- (* b b) (* 4.0 (* a c))))
24.6b
(cbrt (- (* b b) (* 4.0 (* a c))))
24.6b
(cbrt (- (* b b) (* 4.0 (* a c))))
24.6b
(cbrt (- (* b b) (* 4.0 (* a c))))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
add-sqr-sqrt add-cube-cbrt cbrt-div *-un-lft-identity
pow1 add-exp-log expm1-log1p-u flip3-- pow1/3 add-cbrt-cube flip-- log1p-expm1-u add-log-exp
Counts
4 → 60
Calls
4 calls:
4.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))
4.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))
4.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))
4.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))

series402.0ms

Counts
4 → 12
Calls
4 calls:
100.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))
101.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))
99.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))
102.0ms
(cbrt (- (* b b) (* 4.0 (* a c))))

simplify77.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
0161680
1549636
22239628
35001628

prune391.0ms

Pruning

10 alts after pruning (7 fresh and 3 done)

Merged error: 7.2b

regimes224.0ms

Accuracy

84.2% (4.5b remaining)

Error of 10.3b against oracle of 5.8b and baseline of 34.3b

bsearch70.0ms

Steps
ItersRangePoint
3
5.062782482725967e+112
6.853081242536654e+112
6.51740022507215e+112
7
-2.1605152142522817e-113
-1.8017938791730603e-115
-2.125553485370055e-113

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03716
13716

end0.0ms

sample1.2s

Algorithm
intervals
Results
259.0ms1069×body2560valid
241.0ms5857×body80valid
178.0ms907×body1280valid
107.0ms2908×body80nan
79.0ms468×body640valid
30.0ms244×body320valid
28.0ms95×body5120valid
9.0ms115×body160valid