17.04.2013 Views

Distribuţia Binomială: Modelare Statistică, Optimizare Numerică, cu ...

Distribuţia Binomială: Modelare Statistică, Optimizare Numerică, cu ...

Distribuţia Binomială: Modelare Statistică, Optimizare Numerică, cu ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lorentz JÄNTSCHI (principal investigator) & Sorana D. BOLBOACĂ (co-investigator)<br />

define("EPS", 2.22e-16);<br />

function logGamma(x){<br />

//LogGammarelatedconstants<br />

lg_d1=-0.5772156649015328605195174;<br />

lg_d2=0.4227843350984671393993777;<br />

lg_d4=1.791759469228055000094023;<br />

lg_p1=array(4.945235359296727046734888,<br />

201.8112620856775083915565,2290.838373831346393026739,<br />

11319.67205903380828685045,28557.24635671635335736389,<br />

38484.96228443793359990269,26377.48787624195437963534,<br />

7225.813979700288197698961);<br />

lg_p2=array(4.974607845568932035012064,<br />

542.4138599891070494101986,15506.93864978364947665077,<br />

184793.2904445632425417223,1088204.76946882876749847,<br />

3338152.967987029735917223,5106661.678927352456275255,<br />

3074109.054850539556250927);<br />

lg_p4=array(14745.02166059939948905062,<br />

2426813.369486704502836312,121475557.4045093227939592,<br />

2663432449.630976949898078,29403789566.34553899906876,<br />

170266573776.5398868392998,492612579337.743088758812,<br />

560625185622.3951465078242);<br />

lg_q1=array(67.48212550303777196073036,<br />

1113.332393857199323513008,7738.757056935398733233834,<br />

27639.87074403340708898585,54993.10206226157329794414,<br />

61611.22180066002127833352,36351.27591501940507276287,<br />

8785.536302431013170870835);<br />

lg_q2=array(183.0328399370592604055942,<br />

7765.049321445005871323047,133190.3827966074194402448,<br />

1136705.821321969608938755,5267964.117437946917577538,<br />

13467014.54311101692290052,17827365.30353274213975932,<br />

9533095.591844353613395747);<br />

lg_q4=array(2690.530175870899333379843,<br />

639388.5654300092398984238,41355999.30241388052042842,<br />

1120872109.61614794137657,14886137286.78813811542398,<br />

101680358627.2438228077304,341747634550.7377132798597,<br />

446315818741.9713286462081);<br />

lg_c=array(-0.001910444077728,8.4171387781295e-4,<br />

-5.952379913043012e-4,7.93650793500350248e-4,<br />

-<br />

0.002777777777777681622553,0.08333333333333333331554247,<br />

0.0057083835261);<br />

//Rough estimate of the fourth root of logGamma_xBig<br />

lg_frtbig=2.25e76; pnt68=0.6796875;<br />

if(x==this->logGammaCache_x){<br />

return this->logGammaCache_res;<br />

}<br />

y=x;<br />

if(y>0.0&&y

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!