Details

rewrite5.4m (41.7%)

Algorithm
104×rewrite-expression-head
Calls

307 calls:

4.1m
(+ (+ (+ (+ (* (+ (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* x1 (* x1 (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))))) (* (* x1 x1) (- 6))) (+ (* x1 x1) 1)) (* (* (* 3 x1) x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))) (* (* x1 x1) x1)) x1) (* 3 (/ (- (- (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))
38.0s
(+ (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (* (* (cbrt (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (cbrt (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3))) (cbrt (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)))) (* x1 (* x1 (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))))) (* (* x1 x1) (- 6)))
5.0s
(+ (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* (* x1 x1) (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))) (* (* x1 x1) (- 6)))
4.6s
(+ (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* x1 (* x1 (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))))) (* (* x1 x1) (- 6)))
2.2s
(* (+ (/ (/ PI 1) (* (+ a b) (/ a (/ 1 2)))) (- (/ (/ (/ PI (+ a b)) 2) b))) (/ 1 (- b a)))
Rules
15790×times-frac
9276×*-un-lft-identity
7745×add-sqr-sqrt
6960×add-cube-cbrt
1922×add-exp-log
1684×add-cbrt-cube
1319×pow1
983×distribute-lft-out
724×associate-*r*
680×add-log-exp
641×div-inv
616×prod-exp
606×associate-/r/
592×associate-/l*
552×cbrt-unprod
550×div-exp
498×associate-/r*
467×flip-+ flip3-+
411×cbrt-undiv
406×associate-*l*
397×pow-prod-down
349×difference-of-squares
307×insert-posit16
233×sqrt-prod
171×associate-*r/
170×sum-log
159×cbrt-prod
157×frac-times
148×flip--
147×flip3--
144×pow-prod-up
138×associate-*l/
133×distribute-rgt-neg-in
132×unpow-prod-down
130×distribute-lft-out--
112×sqrt-div
110×distribute-lft-neg-in
108×swap-sqr unswap-sqr
105×sqr-pow
97×difference-of-sqr-1
90×*-commutative
82×frac-sub associate-/l/
79×log-prod
76×log-pow pow-sqr
74×exp-neg
69×neg-sub0 sqrt-pow1
64×frac-2neg clear-num
63×exp-prod
60×exp-diff sub-neg
57×pow-plus
50×diff-log
49×+-commutative pow1/2 frac-add
45×1-exp
42×pow2
38×distribute-rgt-in distribute-lft-in
33×cbrt-div neg-mul-1
32×rem-sqrt-square
26×div-sub
25×associate-+l+
23×rec-exp
20×un-div-inv rem-log-exp log-div
19×associate-+r+
14×associate--l+ rem-exp-log
12×pow-exp pow-to-exp distribute-neg-frac
11×associate--l- exp-sum neg-log associate--r+
cube-unmult distribute-rgt-neg-out
pow-div
pow-flip inv-pow associate-+l-
pow1/3
distribute-frac-neg unsub-neg
remove-posit16 cube-prod associate-+r- distribute-rgt-out
pow-unpow distribute-lft-neg-out
exp-to-pow associate--r-
distribute-lft1-in pow3 unpow3 sqrt-unprod pow-pow rem-square-sqrt cube-mult distribute-rgt1-in

simplify4.5m (34.9%)

prune1.3m (9.8%)

sample1.2m (9.0%)

Algorithm
67×intervals
Results
26.1s269828×body80valid
9.8s13759×body1280valid
5.8s16809×body160valid
4.4s3938×body2560valid
3.9s9295×body640valid
3.6s2216×body10240exit
2.6s75892×pre80true
2.5s19428×body80nan
1.9s6881×body320valid
225.0ms245×body5120valid
7.0ms100×pre80false

series26.1s (3.3%)

Calls

307 calls:

524.0ms
(+ (+ (+ (+ (* (+ (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* x1 (* x1 (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))))) (* (* x1 x1) (- 6))) (+ (* x1 x1) 1)) (* (* (* 3 x1) x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))) (* (* x1 x1) x1)) x1) (* 3 (/ (- (- (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))
488.0ms
(+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* (* x1 x1) (- (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) 6)))
436.0ms
(+ (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* (* x1 x1) (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))) (* (* x1 x1) (- 6)))
432.0ms
(- 2 (/ 2 (+ 1 t)))
420.0ms
(/ 1 (pow x 5))

regimes5.6s (0.7%)

Accuracy

Total 33.8b remaining (13.4%)

Threshold costs 3.1b (1.2%)

9.9b56.5%Compound Interest
5.2b82%The quadratic formula (r1)
5.0b81.6%The quadratic formula (r2)
4.7b76.2%Kahan p9 Example
3.2b72.1%Complex division, imag part

localize4.1s (0.5%)

bsearch1.2s (0.1%)

end1.0ms (0.0%)