23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1/168<br />

1/252<br />

1/360<br />

1/495<br />

1/660<br />

In this case, with integer arguments,<br />

beta(n,3)<br />

= (n-1)!*2!/(n+2)!<br />

= 2/(n*(n+1)*(n+2))<br />

beta, betainc, betaln<br />

is the ratio of fairly small integers and the rational format is able to recover the<br />

exact result.<br />

For x = 510, betaln(x,x) = -708.8616, which is slightly less than<br />

log(realmin). Here beta(x,x) would underflow (or be denormal).<br />

Algorithm beta(z,w) = exp(gammaln(z)+gammaln(w)-gammaln(z+w))<br />

betaln(z,w) = gammaln(z)+gammaln(w)-gammaln(z+w)<br />

2-145

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

Saved successfully!

Ooh no, something went wrong!