02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

IRANP(X)<br />

Description<br />

Generate Poisson-distributed random numbers.<br />

Class<br />

Elemental nonstandard function.<br />

Argument<br />

X must be of REAL(4) type and must be in the range 0.0 through 87.33. For better<br />

performance, it is recommended that X be less than 50.0 (see “Result value” below).<br />

Result type/<br />

type parameters<br />

INTEGER(4) type.<br />

Result value<br />

IRANP returns an error code of -1 if X 87.33.<br />

IRANP calculates exponentially distributed random numbers until the product is less than<br />

exp(-X). The random number returned by IRANP is the number of exponentials needed,<br />

minus 1. IRANP makes an average of X+1 calls to RAND, so it is recommended that X be less<br />

than 50.<br />

ISHFT(I, SHIFT)<br />

Description<br />

Performs a logical shift.<br />

Class<br />

Elemental function.<br />

Arguments<br />

I must be of type integer.<br />

536<br />

Chapter 11

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

Saved successfully!

Ooh no, something went wrong!