It can also be used to generate Landau distributed random numbers in the range .
4 References
Kölbig K S and Schorr B (1984) A program package for the Landau distribution Comp. Phys. Comm.31 97–111
5 Arguments
1:
x – doubleInput
On entry: the argument of the function.
Constraint:
.
2:
fail – NagError *Input/Output
The NAG error argument (see Section 3.6 in the Essential Introduction).
6 Error Indicators and Warnings
NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
NE_REAL
On entry, .
Constraint: .
On entry, .
Constraint: .
7 Accuracy
At least significant digits are correct. Such accuracy is normally considered to be adequate for applications in large scale Monte–Carlo simulations.
8 Parallelism and Performance
Not applicable.
9 Further Comments
None.
10 Example
This example evaluates at , and prints the results.