Details

Time bar (total: 2.4m)

sample79.0ms

Algorithm
intervals
Results
19.0ms209×body80valid
15.0ms28×body2560valid
13.0ms28×body1280valid
9.0ms99×body80nan
7.0ms13×body640valid
1.0msbody320valid
1.0msbody5120valid
0.0msbody160valid

simplify131.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
131.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

localize20.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)

rewrite64.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
25.0ms
(/ (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2) a)
18.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
15.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
1.0ms
(sqrt (fma c (* -4 a) (* b b)))

series503.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
135.0ms
(/ (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2) a)
133.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
123.0ms
(sqrt (fma c (* -4 a) (* b b)))
111.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)

simplify17.1s

Counts
272 → 225
Calls
272 calls:
Slowest
681.0ms
(- (* (sqrt (fma c (* -4 a) (* b b))) (sqrt (fma c (* -4 a) (* b b)))) (* b b))
410.0ms
(/ (sqrt (- (sqrt (fma c (* -4 a) (* b b))) b)) (* (cbrt 2) (cbrt 2)))
380.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)))
358.0ms
(- (pow (sqrt (fma c (* -4 a) (* b b))) 3) (pow b 3))
241.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))

prune2.8s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 22.7b

localize45.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)

rewrite80.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
39.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
15.0ms
(/ 1 (/ a (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)))
7.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
3.0ms
(sqrt (fma c (* -4 a) (* b b)))

series535.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
175.0ms
(/ 1 (/ a (/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)))
128.0ms
(/ (- (sqrt (fma c (* -4 a) (* b b))) b) 2)
126.0ms
(- (sqrt (fma c (* -4 a) (* b b))) b)
105.0ms
(sqrt (fma c (* -4 a) (* b b)))

simplify1.8m

Counts
620 → 430
Calls
620 calls:
Slowest
666.0ms
(- (* (sqrt (fma c (* -4 a) (* b b))) (sqrt (fma c (* -4 a) (* b b)))) (* b b))
650.0ms
(/ (sqrt 1) (/ 1 (/ (* (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b)) (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b))) (* (cbrt 2) (cbrt 2)))))
634.0ms
(/ (sqrt 1) (/ (* (cbrt a) (cbrt a)) (/ (* (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b)) (cbrt (- (sqrt (fma c (* -4 a) (* b b))) b))) (sqrt 2))))
603.0ms
(/ 1 (/ (sqrt a) (/ (+ (sqrt (sqrt (fma c (* -4 a) (* b b)))) (sqrt b)) 1)))
580.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ (* (cbrt a) (cbrt a)) (/ (+ (sqrt (sqrt (fma c (* -4 a) (* b b)))) (sqrt b)) (sqrt 2))))

prune3.9s

Pruning

16 alts after pruning (15 fresh and 1 done)

Merged error: 22.7b

localize24.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))

rewrite26.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
16.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))

series299.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
83.0ms
(- (sqrt (fma (* c -4) a (* b b))) b)
82.0ms
(sqrt (fma (* c -4) a (* b b)))
81.0ms
(/ (- (sqrt (fma (* c -4) a (* b b))) b) a)
52.0ms
(fma (* c -4) a (* b b))

simplify4.0s

Counts
111 → 126
Calls
111 calls:
Slowest
455.0ms
(- (* (sqrt (fma (* c -4) a (* b b))) (sqrt (fma (* c -4) a (* b b)))) (* b b))
241.0ms
(- (pow (sqrt (fma (* c -4) a (* b b))) 3) (pow b 3))
198.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))
72.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)))))
61.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)))

prune954.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 18.5b

localize27.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))

rewrite20.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
9.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)))

series393.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
118.0ms
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
114.0ms
(sqrt (- (sqrt (fma (* c -4) a (* b b))) b))
82.0ms
(sqrt (fma (* c -4) a (* b b)))
79.0ms
(sqrt (fma (* c -4) a (* b b)))

simplify2.6s

Counts
42 → 86
Calls
42 calls:
Slowest
799.0ms
(sqrt (- (* (sqrt (fma (* c -4) a (* b b))) (sqrt (fma (* c -4) a (* b b)))) (* b b)))
723.0ms
(sqrt (- (* (sqrt (fma (* c -4) a (* b b))) (sqrt (fma (* c -4) a (* b b)))) (* b b)))
237.0ms
(sqrt (- (pow (sqrt (fma (* c -4) a (* b b))) 3) (pow b 3)))
237.0ms
(sqrt (- (pow (sqrt (fma (* c -4) a (* b b))) 3) (pow b 3)))
37.0ms
(sqrt (* (cbrt (- (sqrt (fma (* c -4) a (* b b))) b)) (cbrt (- (sqrt (fma (* c -4) a (* b b))) b))))

prune736.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 18.5b

regimes229.0ms

Accuracy

93.4% (0.8b remaining)

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

bsearch106.0ms

end0.0ms

sample3.4s

Algorithm
intervals
Results
1.4s1074×body2560valid
682.0ms5900×body80valid
482.0ms881×body1280valid
261.0ms2889×body80nan
182.0ms467×body640valid
63.0ms95×body5120valid
58.0ms221×body320valid
40.0ms113×body160valid