Details

Time bar (total: 3.6m)

sample93.0ms

Algorithm
intervals
Results
28.0ms32×body2560valid
16.0ms170×body80valid
13.0ms28×body1280valid
7.0ms20×body640valid
7.0ms78×body80nan
3.0msbody5120valid
3.0msbody320valid
1.0msbody160valid

simplify640.0ms

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

prune11.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.7b

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

rewrite69.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
46.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
13.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))

series455.0ms

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

simplify30.3s

Counts
334 → 252
Calls
334 calls:
Slowest
435.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 (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))))))))
276.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))))))))
270.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))))))))
259.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.1s

Pruning

13 alts after pruning (13 fresh and 0 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.4b
(fma (* a c) -4 (* b b))
0.1b
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)

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

series464.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
141.0ms
(/ (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2) a)
127.0ms
(sqrt (fma (* a c) -4 (* b b)))
117.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
78.0ms
(fma (* a c) -4 (* b b))

simplify31.4s

Counts
334 → 252
Calls
334 calls:
Slowest
476.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)))
419.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
271.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))))))))
261.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))))))))
254.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.2s

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 4.6b

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

rewrite60.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
24.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))

series456.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
141.0ms
(/ 1 (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
118.0ms
(sqrt (fma (* a c) -4 (* b b)))
110.0ms
(- (- b) (sqrt (fma (* a c) -4 (* b b))))
87.0ms
(fma (* a c) -4 (* b b))

simplify2.2m

Counts
724 → 481
Calls
724 calls:
Slowest
786.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ (* (cbrt a) (cbrt a)) (/ 1 (* (cbrt 2) (cbrt 2)))))
724.0ms
(/ (cbrt 1) (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) 2)))
713.0ms
(/ (sqrt 1) (/ a (/ (- (- b) (sqrt (fma (* a c) -4 (* b b)))) (cbrt 2))))
591.0ms
(/ (* (cbrt 1) (cbrt 1)) (/ (* (cbrt a) (cbrt a)) (- (- b) (sqrt (fma (* a c) -4 (* b b))))))
560.0ms
(/ (sqrt 1) (/ (* (cbrt a) (cbrt a)) (/ (sqrt (- (- b) (sqrt (fma (* a c) -4 (* b b))))) (* (cbrt 2) (cbrt 2)))))

prune4.7s

Pruning

12 alts after pruning (11 fresh and 1 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.2b
(fma a (* c -4) (* b b))
0.2b
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))

rewrite41.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
34.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))

series311.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
93.0ms
(* (- (+ b (sqrt (fma a (* c -4) (* b b))))) (/ 1/2 a))
82.0ms
(+ b (sqrt (fma a (* c -4) (* b b))))
82.0ms
(sqrt (fma a (* c -4) (* b b)))
54.0ms
(fma a (* c -4) (* b b))

simplify2.8s

Counts
58 → 106
Calls
58 calls:
Slowest
254.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)))
210.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)
201.0ms
(* (- (+ (pow b 3) (pow (sqrt (fma a (* c -4) (* b b))) 3))) (/ 1/2 a))
190.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)))
174.0ms
(- (* 2 b) (* 2 (/ (* a c) b)))

prune802.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 4.6b

regimes240.0ms

Accuracy

85.4% (4.1b remaining)

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

bsearch137.0ms

end0.0ms

sample3.5s

Algorithm
intervals
Results
988.0ms5812×body80valid
817.0ms1087×body2560valid
419.0ms874×body1280valid
394.0ms122×body5120valid
326.0ms2848×body80nan
220.0ms478×body640valid
64.0ms236×body320valid
23.0ms118×body160valid