Details

Time bar (total: 3.6m)

sample147.0ms

Algorithm
intervals
Results
39.0ms32×body2560valid
28.0ms170×body80valid
24.0ms28×body1280valid
14.0ms20×body640valid
12.0ms78×body80nan
4.0msbody5120valid
4.0msbody320valid
2.0msbody160valid

simplify249.0ms

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

prune20.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.7b

localize26.0ms

Local error

Found 4 expressions with local error:

20.7b
(sqrt (fma (* a c) -4 (* b b)))
2.7b
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
0.4b
(fma (* a c) -4 (* b b))
0.1b
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
169×add-sqr-sqrt
168×*-un-lft-identity
159×times-frac
116×add-cube-cbrt
60×prod-diff
46×sqrt-prod
34×distribute-rgt-neg-in
26×distribute-lft-out-- difference-of-squares
25×associate-/l*
21×distribute-lft-neg-in
10×fma-neg
add-cbrt-cube add-exp-log
add-log-exp
neg-mul-1
pow1 div-inv
expm1-log1p-u insert-posit16 log1p-expm1-u
cbrt-undiv associate-/r* div-exp
diff-log div-sub
associate--l- neg-sub0 rem-sqrt-square clear-num sub-neg frac-2neg sqrt-pow1 flip3-- pow1/2 neg-log fma-udef flip-- associate-/l/
Counts
4 → 240
Calls
4 calls:
Slowest
20.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
14.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
1.0ms
(sqrt (fma (* a c) -4 (* b b)))
0.0ms
(fma (* a c) -4 (* b b))

series424.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
149.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
108.0ms
(sqrt (fma (* a c) -4 (* b b)))
95.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
72.0ms
(fma (* a c) -4 (* b b))

simplify30.0s

Counts
334 → 252
Calls
334 calls:
Slowest
431.0ms
(/ (/ (* (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b))))) (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b)))))) (* (cbrt 2) (cbrt 2))) (* (cbrt a) (cbrt a)))
379.0ms
(/ (* (cbrt (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)) (cbrt (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2))) 1)
281.0ms
(fma (- (* (cbrt b) (cbrt b))) (cbrt b) (- (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (cbrt (sqrt (fma (* a c) -4 (* b b))))))))
250.0ms
(fma (* (cbrt (- b)) (cbrt (- b))) (cbrt (- b)) (- (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (cbrt (sqrt (fma (* a c) -4 (* b b))))))))
231.0ms
(fma (sqrt b) (- (sqrt b)) (- (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (cbrt (sqrt (fma (* a c) -4 (* b b))))))))

prune2.8s

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 4.6b

localize21.0ms

Local error

Found 4 expressions with local error:

20.7b
(sqrt (fma (* a c) -4 (* b b)))
2.7b
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
0.4b
(fma (* a c) -4 (* b b))
0.1b
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
169×add-sqr-sqrt
168×*-un-lft-identity
159×times-frac
116×add-cube-cbrt
60×prod-diff
46×sqrt-prod
34×distribute-rgt-neg-in
26×distribute-lft-out-- difference-of-squares
25×associate-/l*
21×distribute-lft-neg-in
10×fma-neg
add-cbrt-cube add-exp-log
add-log-exp
neg-mul-1
pow1 div-inv
expm1-log1p-u insert-posit16 log1p-expm1-u
cbrt-undiv associate-/r* div-exp
diff-log div-sub
associate--l- neg-sub0 rem-sqrt-square clear-num sub-neg frac-2neg sqrt-pow1 flip3-- pow1/2 neg-log fma-udef flip-- associate-/l/
Counts
4 → 240
Calls
4 calls:
Slowest
32.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
10.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
1.0ms
(sqrt (fma (* a c) -4 (* b b)))
0.0ms
(fma (* a c) -4 (* b b))

series384.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
128.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
98.0ms
(sqrt (fma (* a c) -4 (* b b)))
86.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
72.0ms
(fma (* a c) -4 (* b b))

simplify30.2s

Counts
334 → 252
Calls
334 calls:
Slowest
548.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
445.0ms
(/ (/ (* (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b))))) (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b)))))) (* (cbrt 2) (cbrt 2))) (* (cbrt a) (cbrt a)))
282.0ms
(fma (sqrt (- b)) (sqrt (- b)) (- (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (cbrt (sqrt (fma (* a c) -4 (* b b))))))))
256.0ms
(fma (sqrt b) (- (sqrt b)) (- (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (cbrt (sqrt (fma (* a c) -4 (* b b))))))))
245.0ms
(fma 1 (- b) (- (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (* (cbrt (sqrt (fma (* a c) -4 (* b b)))) (cbrt (sqrt (fma (* a c) -4 (* b b))))))))

prune3.3s

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 4.6b

localize37.0ms

Local error

Found 4 expressions with local error:

20.7b
(sqrt (fma (* a c) -4 (* b b)))
2.7b
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
0.4b
(fma (* a c) -4 (* b b))
0.2b
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))

rewrite81.0ms

Algorithm
rewrite-expression-head
Rules
792×times-frac
512×add-sqr-sqrt
511×*-un-lft-identity
363×add-cube-cbrt
80×associate-/r*
74×distribute-lft-out-- difference-of-squares
70×sqrt-prod
60×prod-diff
58×distribute-rgt-neg-in
25×add-exp-log
21×distribute-lft-neg-in
17×div-inv
15×div-exp
13×add-cbrt-cube
10×fma-neg
add-log-exp
neg-mul-1
pow1 cbrt-undiv
associate-/r/
expm1-log1p-u insert-posit16 log1p-expm1-u
rec-exp 1-exp associate-/l*
diff-log
associate--l- neg-sub0 rem-sqrt-square clear-num sub-neg frac-2neg sqrt-pow1 flip3-- pow1/2 neg-log fma-udef pow-flip flip-- inv-pow
Counts
4 → 469
Calls
4 calls:
Slowest
34.0ms
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
20.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
2.0ms
(sqrt (fma (* a c) -4 (* b b)))
0.0ms
(fma (* a c) -4 (* b b))

series430.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
154.0ms
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
114.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
92.0ms
(sqrt (fma (* a c) -4 (* b b)))
69.0ms
(fma (* a c) -4 (* b b))

simplify2.2m

Counts
724 → 481
Calls
724 calls:
Slowest
842.0ms
(/ (sqrt 1) (/ (* (cbrt a) (cbrt a)) (/ (+ (sqrt (- b)) (sqrt (sqrt (fma (* a c) -4 (* b b))))) (sqrt 2))))
719.0ms
(/ (sqrt 1) (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
658.0ms
(/ (cbrt 1) (/ (cbrt a) (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
650.0ms
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
571.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ 1 (/ (* (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b))))) (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b)))))) (* (cbrt 2) (cbrt 2)))))

prune6.4s

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 4.6b

localize35.0ms

Local error

Found 4 expressions with local error:

20.7b
(sqrt (fma a (* c -4) (* b b)))
2.7b
(+ b (sqrt (fma a (* c -4) (* b b))))
0.2b
(fma a (* c -4) (* b b))
0.2b
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt *-un-lft-identity
16×add-cube-cbrt
13×associate-*r*
12×associate-*l*
10×times-frac
add-cbrt-cube add-exp-log
pow1
add-log-exp
distribute-lft-neg-in expm1-log1p-u distribute-rgt-neg-in insert-posit16 log1p-expm1-u distribute-neg-frac
fma-def flip3-+ sqrt-prod flip-+ distribute-lft-out
frac-times associate-*l/ prod-exp cbrt-unprod unswap-sqr
distribute-lft-neg-out cbrt-undiv +-commutative rem-sqrt-square neg-mul-1 sum-log sqrt-pow1 pow1/2 div-exp pow-prod-down associate-*r/ *-commutative fma-udef div-inv
Counts
4 → 94
Calls
4 calls:
Slowest
44.0ms
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))
5.0ms
(+ b (sqrt (fma a (* c -4) (* b b))))
1.0ms
(sqrt (fma a (* c -4) (* b b)))
0.0ms
(fma a (* c -4) (* b b))

series394.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
110.0ms
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))
107.0ms
(sqrt (fma a (* c -4) (* b b)))
106.0ms
(+ b (sqrt (fma a (* c -4) (* b b))))
71.0ms
(fma a (* c -4) (* b b))

simplify4.1s

Counts
58 → 106
Calls
58 calls:
Slowest
366.0ms
(* (* (* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (- (+ b (sqrt (fma a (* c -4) (* b b)))))) (- (+ b (sqrt (fma a (* c -4) (* b b)))))) (/ (* (* 1/2 1/2) 1/2) (* (* a a) a)))
355.0ms
(* (+ (* b b) (- (* (sqrt (fma a (* c -4) (* b b))) (sqrt (fma a (* c -4) (* b b)))) (* b (sqrt (fma a (* c -4) (* b b)))))) a)
290.0ms
(* (- (+ (pow b 3) (pow (sqrt (fma a (* c -4) (* b b))) 3))) (/ 1/2 a))
267.0ms
(* (* (* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (- (+ b (sqrt (fma a (* c -4) (* b b)))))) (- (+ b (sqrt (fma a (* c -4) (* b b)))))) (* (* (/ 1/2 a) (/ 1/2 a)) (/ 1/2 a)))
255.0ms
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))

prune1.1s

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 4.6b

regimes315.0ms

Accuracy

85.4% (4.1b remaining)

Error of 9.5b against oracle of 5.4b and baseline of 33.6b

bsearch209.0ms

end0.0ms

sample4.2s

Algorithm
intervals
Results
1.3s874×body1280valid
864.0ms1087×body2560valid
693.0ms5812×body80valid
460.0ms2848×body80nan
358.0ms478×body640valid
97.0ms122×body5120valid
77.0ms236×body320valid
46.0ms118×body160valid