Details

Time bar (total: 4.6m)

sample90.0ms

Algorithm
intervals
Results
26.0ms35×body2560valid
19.0ms36×body1280valid
18.0ms181×body80valid
8.0ms80×body80nan
4.0ms12×body640valid
2.0msbody320valid
1.0msbody160valid

simplify228.0ms

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

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.7b

localize35.0ms

Local error

Found 4 expressions with local error:

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

rewrite44.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
19.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
17.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))

series406.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
121.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
101.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
99.0ms
(sqrt (fma (* a c) -4 (* b b)))
86.0ms
(fma (* a c) -4 (* b b))

simplify32.2s

Counts
334 → 252
Calls
334 calls:
Slowest
453.0ms
(/ (/ (cbrt (- (- b) (sqrt (fma (* a c) -4 (* b b))))) 2) (cbrt a))
405.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)))
320.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))))))))
283.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))))))))
267.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))))))))

prune3.3s

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 5.1b

localize50.0ms

Local error

Found 4 expressions with local error:

20.8b
(sqrt (fma c (* -4 a) (* b b)))
1.1b
(- (- (sqrt (fma c (* -4 a) (* b b)))) b)
0.1b
(/ (/ (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0) 2) a)
0.0b
(fma c (* -4 a) (* b b))

rewrite164.0ms

Algorithm
rewrite-expression-head
Rules
204×*-un-lft-identity
138×times-frac
107×add-sqr-sqrt
104×add-cube-cbrt
48×prod-diff
37×distribute-rgt-neg-in
36×distribute-lft-out
27×sqrt-prod
26×distribute-lft-out--
24×distribute-lft-neg-in
22×associate-/l*
16×fma-neg
add-cbrt-cube add-exp-log
add-log-exp
pow1 div-inv
expm1-log1p-u neg-mul-1 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 associate-+l- fma-udef flip-- difference-of-squares associate-/l/
Counts
4 → 221
Calls
4 calls:
Slowest
130.0ms
(/ (/ (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0) 2) a)
28.0ms
(- (- (sqrt (fma c (* -4 a) (* b b)))) b)
2.0ms
(sqrt (fma c (* -4 a) (* b b)))
0.0ms
(fma c (* -4 a) (* b b))

series478.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
156.0ms
(- (- (sqrt (fma c (* -4 a) (* b b)))) b)
133.0ms
(/ (/ (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0) 2) a)
110.0ms
(sqrt (fma c (* -4 a) (* b b)))
79.0ms
(fma c (* -4 a) (* b b))

simplify26.5s

Counts
293 → 233
Calls
293 calls:
Slowest
521.0ms
(/ (/ (* (cbrt (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0)) (cbrt (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0))) (* (cbrt 2) (cbrt 2))) (* (cbrt a) (cbrt a)))
298.0ms
(/ (/ (* (cbrt (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0)) (cbrt (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0))) (sqrt 2)) (* (cbrt a) (cbrt a)))
296.0ms
(/ (/ (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0) (cbrt 2)) (sqrt a))
280.0ms
(/ (/ (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0) 2) (sqrt a))
272.0ms
(/ (/ (+ (- (- (sqrt (fma c (* -4 a) (* b b)))) b) 0) (cbrt 2)) (sqrt a))

prune3.0s

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 5.1b

localize35.0ms

Local error

Found 4 expressions with local error:

20.8b
(sqrt (fma b b (* -4 (* a c))))
1.1b
(- (- b) (sqrt (fma b b (* -4 (* a c)))))
0.3b
(fma b b (* -4 (* a c)))
0.1b
(/ (/ (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0) 2) a)

rewrite772.0ms

Algorithm
rewrite-expression-head
Rules
654×*-un-lft-identity
300×distribute-lft-out
285×times-frac
163×add-sqr-sqrt
158×add-cube-cbrt
94×distribute-rgt-neg-in
74×distribute-lft-out--
60×prod-diff
43×associate-/l*
34×sqrt-prod
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 div-sub associate-+l- insert-posit16 log1p-expm1-u
cbrt-undiv associate-/r* div-exp
neg-sub0 diff-log difference-of-squares
associate--l- rem-sqrt-square clear-num associate-+r- sub-neg frac-2neg sqrt-pow1 flip3-- pow1/2 neg-log fma-udef flip-- associate-/l/
Counts
4 → 313
Calls
4 calls:
Slowest
744.0ms
(/ (/ (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0) 2) a)
10.0ms
(- (- b) (sqrt (fma b b (* -4 (* a c)))))
1.0ms
(sqrt (fma b b (* -4 (* a c))))
0.0ms
(fma b b (* -4 (* a c)))

series416.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
131.0ms
(/ (/ (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0) 2) a)
116.0ms
(sqrt (fma b b (* -4 (* a c))))
104.0ms
(- (- b) (sqrt (fma b b (* -4 (* a c)))))
64.0ms
(fma b b (* -4 (* a c)))

simplify1.2m

Counts
461 → 325
Calls
461 calls:
Slowest
805.0ms
(/ (/ (sqrt (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0)) 1) (sqrt a))
594.0ms
(/ (/ (* (cbrt (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0)) (cbrt (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0))) (* (cbrt 2) (cbrt 2))) (sqrt a))
579.0ms
(/ (/ (* (cbrt (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0)) (cbrt (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0))) (sqrt 2)) (sqrt a))
560.0ms
(/ (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0) (sqrt a))
554.0ms
(/ (sqrt (/ (+ (+ (- (- b) (sqrt (fma b b (* -4 (* a c))))) (+ (- b) b)) 0) 2)) (* (cbrt a) (cbrt a)))

prune4.6s

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 5.1b

localize37.0ms

Local error

Found 4 expressions with local error:

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

rewrite54.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
20.0ms
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
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))

series390.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
139.0ms
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
95.0ms
(sqrt (fma (* a c) -4 (* b b)))
89.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
66.0ms
(fma (* a c) -4 (* b b))

simplify2.1m

Counts
724 → 481
Calls
724 calls:
Slowest
737.0ms
(/ (sqrt 1) (/ (cbrt a) (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) (cbrt 2))))
706.0ms
(/ (cbrt 1) (/ (sqrt a) (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
643.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ (* (cbrt a) (cbrt a)) (- (- b) (sqrt (fma (* a c) -4 (* b b))))))
614.0ms
(/ 1 (/ (cbrt a) (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) (cbrt 2))))
588.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)))))

prune4.5s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 5.1b

regimes318.0ms

Accuracy

84.1% (4.4b remaining)

Error of 9.8b against oracle of 5.4b and baseline of 33.2b

bsearch133.0ms

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.1s1073×body2560valid
641.0ms5826×body80valid
470.0ms879×body1280valid
305.0ms2853×body80nan
238.0ms467×body640valid
67.0ms99×body5120valid
58.0ms217×body320valid
18.0ms106×body160valid