Details

simplify16.7m (42.5%)

rewrite11.2m (28.5%)

Algorithm
166×rewrite-expression-head
Calls

522 calls:

2.0m
(* (/ (* (sqrt (* PI 2.0)) (pow (+ (+ (- z 1.0) 7.0) 0.5) (+ (- z 1.0) 0.5))) (exp (+ (+ (- z 1.0) 7.0) 0.5))) (+ (+ (+ (+ (/ 771.3234287776531 (+ (- z 1.0) 3.0)) (/ -176.6150291621406 (+ (- z 1.0) 4.0))) (+ (/ 676.5203681218851 (- z 0)) 0.9999999999998099)) (+ (/ -1259.1392167224028 (+ (- z 1.0) 2.0)) (+ (/ 12.507343278686905 (+ (- z 1.0) 5.0)) (/ -0.13857109526572012 (+ (- z 1.0) 6.0))))) (+ (/ 9.984369578019572e-06 (+ (- z 1.0) 7.0)) (/ 1.5056327351493116e-07 (+ (- z 1.0) 8.0)))))
1.3m
(* (* (/ (* (pow (+ z 6.5) (- z 0.5)) (sqrt 2.0)) (exp (+ z 6.5))) (sqrt PI)) (+ (+ (+ (+ (/ 771.3234287776531 (+ (- z 1.0) 3.0)) (/ -176.6150291621406 (+ (- z 1.0) 4.0))) (+ (/ 676.5203681218851 (- z 0)) 0.9999999999998099)) (+ (/ -1259.1392167224028 (+ (- z 1.0) 2.0)) (+ (/ 12.507343278686905 (+ (- z 1.0) 5.0)) (/ -0.13857109526572012 (+ (- z 1.0) 6.0))))) (+ (/ 9.984369578019572e-06 (+ (- z 1.0) 7.0)) (/ 1.5056327351493116e-07 (+ (- z 1.0) 8.0)))))
1.2m
(* (sqrt PI) (+ (+ (+ (+ (/ 771.3234287776531 (+ (- z 1.0) 3.0)) (/ -176.6150291621406 (+ (- z 1.0) 4.0))) (+ (/ 676.5203681218851 z) 0.9999999999998099)) (+ (/ -1259.1392167224028 (+ (- z 1.0) 2.0)) (+ (/ 12.507343278686905 (+ (- z 1.0) 5.0)) (/ -0.13857109526572012 (+ (- z 1.0) 6.0))))) (+ (/ 9.984369578019572e-06 (+ (- z 1.0) 7.0)) (/ 1.5056327351493116e-07 (+ (- z 1.0) 8.0)))))
1.2m
(* (sqrt PI) (+ (+ (+ (+ (/ 771.3234287776531 (+ (- z 1.0) 3.0)) (/ -176.6150291621406 (+ (- z 1.0) 4.0))) (+ (/ 676.5203681218851 z) 0.9999999999998099)) (+ (/ -1259.1392167224028 (+ (- z 1.0) 2.0)) (+ (/ 12.507343278686905 (+ (- z 1.0) 5.0)) (/ -0.13857109526572012 (+ (- z 1.0) 6.0))))) (+ (/ 9.984369578019572e-06 (+ (- z 1.0) 7.0)) (/ 1.5056327351493116e-07 (+ (- z 1.0) 8.0)))))
57.5s
(* (/ (* (pow (+ z 6.5) (- z 0.5)) (sqrt 2.0)) (exp (+ z 6.5))) (* (sqrt PI) (+ (+ (+ (+ (/ 771.3234287776531 (+ (- z 1.0) 3.0)) (/ -176.6150291621406 (+ (- z 1.0) 4.0))) (+ (/ 676.5203681218851 z) 0.9999999999998099)) (+ (/ -1259.1392167224028 (+ (- z 1.0) 2.0)) (+ (/ 12.507343278686905 (+ (- z 1.0) 5.0)) (/ -0.13857109526572012 (+ (- z 1.0) 6.0))))) (+ (/ 9.984369578019572e-06 (+ (- z 1.0) 7.0)) (/ 1.5056327351493116e-07 (+ (- z 1.0) 8.0))))))
Rules
68462×times-frac
40694×*-un-lft-identity
33038×add-sqr-sqrt
27316×add-cube-cbrt
14578×sqrt-prod
6745×frac-add
6029×distribute-lft-out
3845×flip-+ flip3-+
3151×pow1
3100×add-exp-log
2865×associate-*r/
2766×associate-*r*
2407×add-cbrt-cube
2340×cbrt-prod
2263×div-inv
2189×difference-of-squares
2082×associate-/r/
1990×frac-times
1962×associate-/l*
1379×associate-/r*
1172×distribute-lft-out--
1139×prod-exp
1129×flip3-- flip--
1112×pow-prod-up
996×associate-*l*
880×add-log-exp
823×frac-sub
816×associate-*l/
814×cbrt-unprod
803×div-exp
624×pow-prod-down
490×cbrt-undiv
467×unswap-sqr
461×pow-plus
442×sqrt-div
382×unpow-prod-down
288×cbrt-div
279×sqrt-pow1
260×log-pow
204×cube-prod
185×pow1/2
173×swap-sqr
170×associate-/l/
160×pow-sqr
157×sum-log
154×*-commutative
135×distribute-rgt-neg-in distribute-lft-neg-in
131×pow2
130×sqr-pow
122×pow-exp
104×frac-2neg clear-num
103×pow-to-exp pow1/3
102×1-exp
100×distribute-rgt-in distribute-lft-in
82×rem-sqrt-square
78×rec-exp log-prod
77×exp-prod
67×sub-neg
64×pow-pow
62×pow-unpow
60×diff-log
54×+-commutative
51×cube-unmult
41×un-div-inv
36×unpow3 associate-+r+ cube-mult neg-mul-1
34×associate--l+
31×unpow2
26×exp-sum
25×associate-+l+
24×div-sub
19×rem-cube-cbrt
15×cube-div
14×exp-diff
10×rem-exp-log inv-pow pow-flip associate-+l-
neg-sub0
distribute-rgt-out associate--r+ log-div
exp-neg
distribute-neg-frac
sum-cubes sqrt-unprod rem-square-sqrt rem-log-exp
distribute-rgt1-in distribute-neg-in difference-of-sqr-1
sqrt-undiv sin-sum pow-sub distribute-rgt-neg-out exp-to-pow associate--l-
associate-+r- distribute-frac-neg associate--r- rem-cbrt-cube
cos-sum distribute-lft1-in pow3 distribute-lft-neg-out unpow-prod-up

prune5.1m (12.9%)

sample4.2m (10.7%)

Algorithm
100×intervals
Results
1.3m15777×body10240exit
1.1m496506×body80valid
29.2s30244×body1280valid
16.9s23335×body640valid
8.6s69884×body80nan
7.1s12089×body320valid
6.9s3076×body1280nan
3.6s2577×body640nan
3.3s10086×body160valid
1.9s1284×body320nan
1.3s49536×pre80true
1.2s1423×body2560valid
530.0ms617×body160nan
468.0ms617×body5120valid

series1.7m (4.4%)

Calls

522 calls:

6.0s
(- (* 1.0 1.0) (* (/ (/ (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (sqrt (exp (pow (fabs x) 2)))) (/ (* (cbrt (exp (pow (fabs x) 2))) (cbrt (exp (pow (fabs x) 2)))) (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))))) (* (* (/ (/ (sqrt (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))) (fabs (cbrt (exp (pow (fabs x) 2))))) (/ (sqrt (cbrt (exp (pow (fabs x) 2)))) (cbrt (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))))) (cbrt (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429)))))))))) (/ (/ (sqrt (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))) (sqrt (cbrt (exp (pow (fabs x) 2))))) (/ (sqrt (cbrt (exp (pow (fabs x) 2)))) (cbrt (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))))))))
3.4s
(* (+ d1 (sqrt (* d1 (- (+ d4 d2) d3)))) (- (sqrt (* d1 (- (+ d4 d2) d3))) d1))
2.9s
(- (* 1.0 1.0) (* (/ (/ (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (sqrt (exp (pow (fabs x) 2)))) (/ (* (cbrt (exp (pow (fabs x) 2))) (cbrt (exp (pow (fabs x) 2)))) (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))))) (/ (/ (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429)))))))) (sqrt (exp (pow (fabs x) 2)))) (/ (cbrt (exp (pow (fabs x) 2))) (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))))))
2.8s
(- (* 1.0 1.0) (/ (/ (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))) (exp (pow (fabs x) 2))) (/ (exp (pow (fabs x) 2)) (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))))))
1.2s
(/ (/ (* (* i (+ (+ alpha beta) i)) (+ (* beta alpha) (* i (+ (+ alpha beta) i)))) (* (+ (+ alpha beta) (* 2.0 i)) (+ (+ alpha beta) (* 2.0 i)))) (- (* (+ (+ alpha beta) (* 2.0 i)) (+ (+ alpha beta) (* 2.0 i))) 1.0))

regimes12.5s (0.5%)

Accuracy

Total 95.6b remaining (37%)

Threshold costs 6.2b (2.4%)

10.5b41.6%math.sqrt on complex, imaginary part, im greater than 0 branch
10.4b57.7%math.log10 on complex, real part
10.2b58.2%math.log/1 on complex, real part
10.1b58.8%math.log/2 on complex, real part
9.9b58.2%math.abs on complex

localize6.2s (0.3%)

bsearch3.3s (0.1%)

end1.0ms (0.0%)