Details

Time bar (total: 1.6m)

sample165.0ms

Algorithm
intervals
Results
50.0ms38×body1280valid
41.0ms41×body2560valid
28.0ms172×body80valid
14.0ms98×body80nan
10.0ms14×body640valid
2.0msbody160valid
1.0msbody320valid
1.0msbody5120valid

simplify194.0ms

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

prune17.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.3b

localize46.0ms

Local error

Found 4 expressions with local error:

21.6b
(sqrt (fma (* a c) -4 (* b b)))
1.0b
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
0.6b
(fma (* a c) -4 (* b b))
0.1b
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)

rewrite81.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
42.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
21.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
3.0ms
(sqrt (fma (* a c) -4 (* b b)))
0.0ms
(fma (* a c) -4 (* b b))

series422.0ms

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

simplify29.7s

Counts
334 → 252
Calls
334 calls:
Slowest
370.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)))
310.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))))))))
278.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))))))))
246.0ms
(/ (* (* (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)) (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)) (* (* a a) a))
237.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))))))))

prune3.3s

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 5.1b

localize54.0ms

Local error

Found 4 expressions with local error:

21.6b
(sqrt (fma (* a c) -4 (* b b)))
1.0b
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
0.6b
(fma (* a c) -4 (* b b))
0.1b
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)

rewrite48.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)
20.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
3.0ms
(sqrt (fma (* a c) -4 (* b b)))
0.0ms
(fma (* a c) -4 (* b b))

series415.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
147.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
103.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
93.0ms
(sqrt (fma (* a c) -4 (* b b)))
72.0ms
(fma (* a c) -4 (* b b))

simplify30.0s

Counts
334 → 252
Calls
334 calls:
Slowest
483.0ms
(fma (* (cbrt (- b)) (cbrt (- b))) (cbrt (- b)) (- (* (sqrt (sqrt (fma (* a c) -4 (* b b)))) (sqrt (sqrt (fma (* a c) -4 (* b b)))))))
449.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)))
305.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))))))))
264.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))))))))
244.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.1s

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 5.1b

localize27.0ms

Local error

Found 3 expressions with local error:

21.6b
(sqrt (fma a (* c -4) (* b b)))
1.0b
(+ b (sqrt (fma a (* c -4) (* b b))))
0.2b
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt *-un-lft-identity
15×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 distribute-rgt-neg-in distribute-neg-frac
expm1-log1p-u fma-def flip3-+ sqrt-prod flip-+ insert-posit16 log1p-expm1-u 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 div-inv
Counts
3 → 83
Calls
3 calls:
Slowest
38.0ms
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))
10.0ms
(+ b (sqrt (fma a (* c -4) (* b b))))
3.0ms
(sqrt (fma a (* c -4) (* b b)))

series358.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
133.0ms
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))
124.0ms
(sqrt (fma a (* c -4) (* b b)))
101.0ms
(+ b (sqrt (fma a (* c -4) (* b b))))

simplify3.8s

Counts
55 → 92
Calls
55 calls:
Slowest
343.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)))
322.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)))
310.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)
258.0ms
(* (- (+ (pow b 3) (pow (sqrt (fma a (* c -4) (* b b))) 3))) (/ 1/2 a))
246.0ms
(* (- (- (* b b) (* (sqrt (fma a (* c -4) (* b b))) (sqrt (fma a (* c -4) (* b b)))))) (/ 1/2 a))

prune1.1s

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 5.0b

localize86.0ms

Local error

Found 4 expressions with local error:

21.6b
(sqrt (fma (* a c) -4 (* b b)))
21.6b
(sqrt (fma (* a c) -4 (* b b)))
21.6b
(sqrt (fma (* a c) -4 (* b b)))
1.0b
(- (- b) (sqrt (fma (* a c) -4 (* b b))))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
60×prod-diff
55×add-sqr-sqrt
52×*-un-lft-identity
48×add-cube-cbrt
40×sqrt-prod
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
10×fma-neg
add-log-exp
pow1 neg-mul-1
expm1-log1p-u add-cbrt-cube add-exp-log insert-posit16 log1p-expm1-u
rem-sqrt-square sqrt-pow1 pow1/2
diff-log distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 sub-neg flip3-- neg-log flip--
Counts
4 → 139
Calls
4 calls:
Slowest
30.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
2.0ms
(sqrt (fma (* a c) -4 (* b b)))
2.0ms
(sqrt (fma (* a c) -4 (* b b)))
2.0ms
(sqrt (fma (* a c) -4 (* b b)))

series408.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
109.0ms
(sqrt (fma (* a c) -4 (* b b)))
107.0ms
(sqrt (fma (* a c) -4 (* b b)))
99.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
93.0ms
(sqrt (fma (* a c) -4 (* b b)))

simplify13.8s

Counts
162 → 151
Calls
162 calls:
Slowest
386.0ms
(fma (- 1) b (- (* (sqrt (sqrt (fma (* a c) -4 (* b b)))) (sqrt (sqrt (fma (* a c) -4 (* b b)))))))
256.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))))))))
241.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))))))))
239.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))))))))
239.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.6s

Pruning

12 alts after pruning (9 fresh and 3 done)

Merged error: 5.0b

regimes575.0ms

Accuracy

84.1% (4.5b remaining)

Error of 9.6b against oracle of 5.2b and baseline of 33.3b

bsearch208.0ms

end0.0ms

sample4.8s

Algorithm
intervals
Results
1.4s5834×body80valid
1.2s1133×body2560valid
735.0ms851×body1280valid
380.0ms2901×body80nan
266.0ms441×body640valid
181.0ms119×body5120valid
128.0ms248×body320valid
63.0ms127×body160valid