Details

Time bar (total: 8.5s)

sample43.0ms

Algorithm
intervals
Results
10.0ms191×body80valid
9.0ms39×body2560valid
3.0ms19×body1280valid
3.0ms82×body80nan
2.0ms16×body640valid
1.0msbody320valid
1.0msbody5120valid
0.0msbody160valid

simplify16.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0299
1659
21219
31519
41609
51649
61649

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 29.8b

Counts
2 → 1

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
0.2b
(- (* b b) (* 4.0 (* a c)))
0.9b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
19.8b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite241.0ms

Algorithm
rewrite-expression-head
Rules
1094×add-sqr-sqrt
580×prod-diff
482×*-un-lft-identity
330×add-cube-cbrt
318×associate-*r*
307×unswap-sqr
256×sqrt-prod
231×associate-*l*
208×difference-of-squares
105×swap-sqr
97×*-commutative
92×distribute-rgt-neg-in
84×times-frac
78×distribute-lft-neg-in
76×distribute-lft-out--
26×neg-mul-1
25×fma-neg
12×associate-/r*
10×add-log-exp
add-exp-log add-cbrt-cube
associate-/l*
pow1
expm1-log1p-u flip3-- flip-- log1p-expm1-u
diff-log
cbrt-undiv associate--l- neg-sub0 sub-neg sqrt-div div-sub div-exp associate-/l/
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 neg-log prod-exp clear-num cbrt-unprod div-inv
Counts
4 → 817
Calls
4 calls:
58.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
31.0ms
(- (* b b) (* 4.0 (* a c)))
39.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
44.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series330.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
52.0ms
(- (* b b) (* 4.0 (* a c)))
87.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
90.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify205.0ms

Algorithm
egg-herbie
Counts
829 → 829
Iterations

Useful iterations: 1 (43.0ms)

IterNodesCost
0193220316
1500115481

prune702.0ms

Filtered
829 candidates to 206 candidates (24.8%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New81910829
Fresh000
Picked101
Done000
Total82010830

Merged error: 4.4b

Counts
830 → 10

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (* b b) (* 4.0 (* a c)))
0.2b
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
0.9b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
19.8b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite269.0ms

Algorithm
rewrite-expression-head
Rules
1474×add-sqr-sqrt
822×*-un-lft-identity
606×times-frac
580×prod-diff
524×add-cube-cbrt
381×associate-*r*
328×unswap-sqr
295×associate-*l*
292×sqrt-prod
280×difference-of-squares
148×distribute-lft-out--
128×distribute-rgt-neg-in
118×*-commutative
105×swap-sqr
97×associate-/r*
78×distribute-lft-neg-in
30×associate-/r/
26×neg-mul-1
25×add-exp-log fma-neg
17×associate-/l*
13×add-cbrt-cube
12×div-exp
10×add-log-exp
flip3-- flip--
pow1
cbrt-undiv div-inv
expm1-log1p-u log1p-expm1-u
rec-exp diff-log 1-exp prod-exp clear-num remove-double-div
sub-neg frac-2neg sqrt-div
associate--l- neg-sub0 rem-sqrt-square pow-flip sqrt-pow1 pow1/2 neg-log cbrt-unprod inv-pow
Counts
4 → 1108
Calls
4 calls:
34.0ms
(- (* b b) (* 4.0 (* a c)))
58.0ms
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
39.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
44.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series381.0ms

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

simplify276.0ms

Algorithm
egg-herbie
Counts
1120 → 1120
Iterations

Useful iterations: 1 (60.0ms)

IterNodesCost
0255925667
1500121115

prune1.3s

Filtered
1120 candidates to 346 candidates (30.9%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New111551120
Fresh549
Picked101
Done000
Total112191130

Merged error: 4.3b

Counts
1130 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) a)
0.2b
(- (* b b) (* 4.0 (* a c)))
0.9b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
19.8b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite235.0ms

Algorithm
rewrite-expression-head
Rules
1017×add-sqr-sqrt
580×prod-diff
421×*-un-lft-identity
305×add-cube-cbrt
299×unswap-sqr
294×associate-*r*
247×sqrt-prod
207×associate-*l*
190×difference-of-squares
105×swap-sqr
89×*-commutative
83×distribute-rgt-neg-in
78×distribute-lft-neg-in
58×distribute-lft-out--
26×neg-mul-1
25×fma-neg
21×times-frac
10×add-log-exp
associate-/l*
add-exp-log add-cbrt-cube
pow1
expm1-log1p-u flip3-- flip-- log1p-expm1-u
diff-log associate-/r*
associate--l- neg-sub0 sub-neg sqrt-div div-sub associate-/l/
cbrt-undiv rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-exp neg-log clear-num div-inv
Counts
4 → 743
Calls
4 calls:
54.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) a)
29.0ms
(- (* b b) (* 4.0 (* a c)))
42.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
45.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series329.0ms

Counts
4 → 12
Calls
4 calls:
102.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) a)
54.0ms
(- (* b b) (* 4.0 (* a c)))
87.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
85.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify191.0ms

Algorithm
egg-herbie
Counts
755 → 755
Iterations

Useful iterations: 1 (39.0ms)

IterNodesCost
0165218955
1500113833

prune785.0ms

Filtered
755 candidates to 170 candidates (22.5%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New7523755
Fresh358
Picked011
Done000
Total7559764

Merged error: 4.3b

Counts
764 → 9

localize23.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt c)
0.9b
(- (- b) (sqrt (+ (fma b b (- (* (cbrt c) (* 4.0 (* a (* (cbrt c) (cbrt c))))))) (* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c))))))
3.7b
(* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c)))
19.8b
(sqrt (+ (fma b b (- (* (cbrt c) (* 4.0 (* a (* (cbrt c) (cbrt c))))))) (* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c)))))

rewrite230.0ms

Algorithm
rewrite-expression-head
Rules
249×add-sqr-sqrt
158×*-un-lft-identity
108×unswap-sqr
107×associate-*l*
102×associate-*r*
90×prod-diff
82×add-cube-cbrt
67×sqrt-prod
61×cbrt-prod
42×distribute-lft-neg-in
40×distribute-lft-out
37×distribute-rgt-neg-in
29×add-cbrt-cube
22×cbrt-unprod
19×pow1
18×add-exp-log
14×swap-sqr
13×neg-mul-1
12×distribute-rgt-out hypot-def
10×fma-neg pow-prod-down prod-exp
*-commutative add-log-exp
expm1-log1p-u log1p-expm1-u
distribute-lft1-in
+-commutative distribute-rgt-in distribute-lft-in flip3-+ sqrt-div diff-log associate-*r/ flip-+ distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 sub-neg rem-sqrt-square flip3-- sqrt-pow1 pow1/2 pow1/3 neg-log flip--
Counts
4 → 294
Calls
4 calls:
1.0ms
(cbrt c)
76.0ms
(- (- b) (sqrt (+ (fma b b (- (* (cbrt c) (* 4.0 (* a (* (cbrt c) (cbrt c))))))) (* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c))))))
60.0ms
(* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c)))
70.0ms
(sqrt (+ (fma b b (- (* (cbrt c) (* 4.0 (* a (* (cbrt c) (cbrt c))))))) (* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c)))))

series433.0ms

Counts
4 → 12
Calls
4 calls:
201.0ms
(cbrt c)
116.0ms
(- (- b) (sqrt (+ (fma b b (- (* (cbrt c) (* 4.0 (* a (* (cbrt c) (cbrt c))))))) (* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c))))))
2.0ms
(* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c)))
114.0ms
(sqrt (+ (fma b b (- (* (cbrt c) (* 4.0 (* a (* (cbrt c) (cbrt c))))))) (* (* 4.0 (* a (* (cbrt c) (cbrt c)))) (+ (- (cbrt c)) (cbrt c)))))

simplify115.0ms

Algorithm
egg-herbie
Counts
306 → 306
Iterations

Useful iterations: 1 (32.0ms)

IterNodesCost
0116912309
150018023

prune790.0ms

Filtered
306 candidates to 171 candidates (55.9%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New3060306
Fresh077
Picked011
Done011
Total3069315

Merged error: 4.3b

Counts
315 → 9

regimes236.0ms

Accuracy

82% (5.0b remaining)

Error of 10.9b against oracle of 5.9b and baseline of 33.5b

bsearch130.0ms

Steps
ItersRangePoint
9
2.8787744468916765e+83
8.390568855339406e+90
7.775131276953344e+90
7
-4.6417297347823423e-91
-2.5527576166225183e-92
-1.7445837442398665e-91

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03414
13414

end0.0ms

sample1.3s

Algorithm
intervals
Results
279.0ms1068×body2560valid
254.0ms5863×body80valid
193.0ms907×body1280valid
118.0ms2983×body80nan
67.0ms415×body640valid
34.0ms236×body320valid
32.0ms93×body5120valid
10.0ms121×body160valid