Details

Time bar (total: 2.0m)

sample118.0ms

Algorithm
intervals
Results
32.0ms209×body80valid
25.0ms28×body2560valid
20.0ms28×body1280valid
13.0ms99×body80nan
7.0ms13×body640valid
1.0msbody320valid
1.0msbody5120valid
0.0msbody160valid

simplify164.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
164.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4 a) c)))) (* 2 a))

prune13.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 27.1b

localize33.0ms

Local error

Found 4 expressions with local error:

20.2b
(sqrt (fma c (* -4 a) (* b b)))
0.2b
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
0.2b
(- (sqrt (fma c (* -4 a) (* b b))) b)
0.1b
(/ (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2) a)

rewrite68.0ms

Algorithm
rewrite-expression-head
Rules
162×add-sqr-sqrt
156×times-frac
127×*-un-lft-identity
93×add-cube-cbrt
34×difference-of-squares
32×sqrt-prod
28×associate-/l*
18×prod-diff
17×distribute-lft-out--
11×add-cbrt-cube add-exp-log
associate-/r* fma-neg div-inv add-log-exp
pow1
expm1-log1p-u cbrt-undiv div-exp insert-posit16 log1p-expm1-u
div-sub associate-/l/
clear-num frac-2neg flip3-- flip--
rem-sqrt-square sub-neg sqrt-pow1 pow1/2 diff-log
Counts
4 → 213
Calls
4 calls:
Slowest
27.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
24.0ms
(/ (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2) a)
7.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
3.0ms
(sqrt (fma c (* -4 a) (* b b)))

series488.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
154.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
121.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
118.0ms
(sqrt (fma c (* -4 a) (* b b)))
94.0ms
(/ (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2) a)

simplify17.0s

Counts
272 → 225
Calls
272 calls:
Slowest
611.0ms
(- (* (sqrt (fma c (* -4 a) (* b b))) (sqrt (fma c (* -4 a) (* b b)))) (* b b))
441.0ms
(/ (/ (* (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b)) (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b))) (* (cbrt 2) (cbrt 2))) (* (cbrt a) (cbrt a)))
312.0ms
(- (pow (sqrt (fma c (* -4 a) (* b b))) 3) (pow b 3))
282.0ms
(/ (* (* (- (sqrt (fma c (* -4 a) (* b b))) b) (- (sqrt (fma c (* -4 a) (* b b))) b)) (- (sqrt (fma c (* -4 a) (* b b))) b)) (* (* 2 2) 2))
220.0ms
(/ (* (* (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2) (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)) (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)) (* (* a a) a))

prune2.7s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 22.7b

localize43.0ms

Local error

Found 4 expressions with local error:

20.2b
(sqrt (fma c (* -4 a) (* b b)))
0.2b
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
0.2b
(/ 1 (/ a (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)))
0.2b
(- (sqrt (fma c (* -4 a) (* b b))) b)

rewrite59.0ms

Algorithm
rewrite-expression-head
Rules
711×times-frac
479×add-sqr-sqrt
396×*-un-lft-identity
314×add-cube-cbrt
82×difference-of-squares
74×associate-/r*
56×sqrt-prod
41×distribute-lft-out--
27×add-exp-log
18×prod-diff div-inv
16×div-exp
15×add-cbrt-cube
associate-/l*
cbrt-undiv
pow1 fma-neg add-log-exp
associate-/r/
expm1-log1p-u insert-posit16 log1p-expm1-u
rec-exp 1-exp
clear-num frac-2neg flip3-- flip-- associate-/l/
rem-sqrt-square sub-neg sqrt-pow1 pow1/2 diff-log div-sub pow-flip inv-pow
Counts
4 → 418
Calls
4 calls:
Slowest
21.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
19.0ms
(/ 1 (/ a (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)))
7.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
1.0ms
(sqrt (fma c (* -4 a) (* b b)))

series483.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
139.0ms
(/ 1 (/ a (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)))
128.0ms
(sqrt (fma c (* -4 a) (* b b)))
115.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
101.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)

simplify1.4m

Counts
620 → 430
Calls
620 calls:
Slowest
772.0ms
(/ (cbrt 1) (/ (cbrt a) (/ (- (sqrt (fma c (* -4 a) (* b b))) b) (sqrt 2))))
670.0ms
(- (* (sqrt (fma c (* -4 a) (* b b))) (sqrt (fma c (* -4 a) (* b b)))) (* b b))
658.0ms
(/ (sqrt 1) (/ (* (cbrt a) (cbrt a)) (/ (sqrt (- (sqrt (fma c (* -4 a) (* b b))) b)) (* (cbrt 2) (cbrt 2)))))
558.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ (* (cbrt a) (cbrt a)) (/ (* (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b)) (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b))) (* (cbrt 2) (cbrt 2)))))
528.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ (* (cbrt a) (cbrt a)) (/ (+ (sqrt (sqrt (fma c (* -4 a) (* b b)))) (sqrt b)) (sqrt 2))))

prune3.6s

Pruning

16 alts after pruning (15 fresh and 1 done)

Merged error: 22.7b

localize19.0ms

Local error

Found 4 expressions with local error:

20.2b
(sqrt (fma (* c -4) a (* b b)))
0.4b
(/ (- (sqrt (fma (* c -4) a (* b b))) b) a)
0.2b
(- (sqrt (fma (* c -4) a (* b b))) b)
0.0b
(fma (* c -4) a (* b b))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
51×add-sqr-sqrt
40×*-un-lft-identity
30×add-cube-cbrt
20×sqrt-prod
18×times-frac prod-diff
10×difference-of-squares
add-cbrt-cube fma-neg add-exp-log associate-/l* add-log-exp
pow1 distribute-lft-out--
expm1-log1p-u insert-posit16 log1p-expm1-u
associate-/r*
flip3-- flip-- associate-/l/
cbrt-undiv rem-sqrt-square clear-num sub-neg frac-2neg sqrt-pow1 pow1/2 diff-log div-sub div-exp fma-udef div-inv
Counts
4 → 114
Calls
4 calls:
Slowest
18.0ms
(/ (- (sqrt (fma (* c -4) a (* b b))) b) a)
7.0ms
(- (sqrt (fma (* c -4) a (* b b))) b)
1.0ms
(sqrt (fma (* c -4) a (* b b)))
0.0ms
(fma (* c -4) a (* b b))

series275.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
77.0ms
(- (sqrt (fma (* c -4) a (* b b))) b)
75.0ms
(sqrt (fma (* c -4) a (* b b)))
72.0ms
(/ (- (sqrt (fma (* c -4) a (* b b))) b) a)
52.0ms
(fma (* c -4) a (* b b))

simplify3.6s

Counts
111 → 126
Calls
111 calls:
Slowest
427.0ms
(- (* (sqrt (fma (* c -4) a (* b b))) (sqrt (fma (* c -4) a (* b b)))) (* b b))
221.0ms
(- (pow (sqrt (fma (* c -4) a (* b b))) 3) (pow b 3))
181.0ms
(/ (* (* (- (sqrt (fma (* c -4) a (* b b))) b) (- (sqrt (fma (* c -4) a (* b b))) b)) (- (sqrt (fma (* c -4) a (* b b))) b)) (* (* a a) a))
65.0ms
(fma (* (cbrt (sqrt (fma (* c -4) a (* b b)))) (cbrt (sqrt (fma (* c -4) a (* b b))))) (cbrt (sqrt (fma (* c -4) a (* b b)))) (- (* (cbrt b) (* (cbrt b) (cbrt b)))))
57.0ms
(fma (* (cbrt (sqrt (fma (* c -4) a (* b b)))) (cbrt (sqrt (fma (* c -4) a (* b b))))) (cbrt (sqrt (fma (* c -4) a (* b b)))) (- (* b 1)))

prune861.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 18.5b

localize29.0ms

Local error

Found 4 expressions with local error:

20.2b
(sqrt (fma (* c -4) a (* b b)))
20.2b
(sqrt (fma (* c -4) a (* b b)))
0.3b
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
0.3b
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt sqrt-prod
12×*-un-lft-identity
pow1 add-cube-cbrt
expm1-log1p-u rem-sqrt-square sqrt-pow1 add-cbrt-cube pow1/2 sqrt-div add-exp-log insert-posit16 log1p-expm1-u add-log-exp difference-of-squares
flip3-- flip-- distribute-lft-out--
Counts
4 → 74
Calls
4 calls:
Slowest
8.0ms
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
8.0ms
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
1.0ms
(sqrt (fma (* c -4) a (* b b)))
1.0ms
(sqrt (fma (* c -4) a (* b b)))

series354.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
104.0ms
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
104.0ms
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
74.0ms
(sqrt (fma (* c -4) a (* b b)))
73.0ms
(sqrt (fma (* c -4) a (* b b)))

simplify2.3s

Counts
42 → 86
Calls
42 calls:
Slowest
676.0ms
(sqrt (- (* (sqrt (fma (* c -4) a (* b b))) (sqrt (fma (* c -4) a (* b b)))) (* b b)))
674.0ms
(sqrt (- (* (sqrt (fma (* c -4) a (* b b))) (sqrt (fma (* c -4) a (* b b)))) (* b b)))
217.0ms
(sqrt (- (pow (sqrt (fma (* c -4) a (* b b))) 3) (pow b 3)))
216.0ms
(sqrt (- (pow (sqrt (fma (* c -4) a (* b b))) 3) (pow b 3)))
33.0ms
(sqrt (* (cbrt (- (sqrt (fma (* c -4) a (* b b))) b)) (cbrt (- (sqrt (fma (* c -4) a (* b b))) b))))

prune675.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 18.5b

regimes210.0ms

Accuracy

93.4% (0.8b remaining)

Error of 22.1b against oracle of 21.3b and baseline of 32.9b

bsearch108.0ms

end0.0ms

sample2.8s

Algorithm
intervals
Results
829.0ms5900×body80valid
711.0ms1074×body2560valid
431.0ms881×body1280valid
279.0ms2889×body80nan
168.0ms467×body640valid
71.0ms221×body320valid
56.0ms95×body5120valid
18.0ms113×body160valid