g01ft returns the value of the inverse of the Landau distribution function.
Syntax
C# |
---|
public static double g01ft( double x, out int ifail ) |
Visual Basic |
---|
Public Shared Function g01ft ( _ x As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double |
Visual C++ |
---|
public: static double g01ft( double x, [OutAttribute] int% ifail ) |
F# |
---|
static member g01ft : x : float * ifail : int byref -> float |
Parameters
- x
- Type: System..::..DoubleOn entry: the argument of the function.Constraint: .
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).
Return Value
g01ft returns the value of the inverse of the Landau distribution function.
Description
g01ft evaluates an approximation to the inverse of the Landau distribution function given by
(where is described in g01et and g01mt), using either linear or quadratic interpolation or rational approximations which mimic the asymptotic behaviour. Further details can be found in Kölbig and Schorr (1984).
It can also be used to generate Landau distributed random numbers in the range .
References
Kölbig K S and Schorr B (1984) A program package for the Landau distribution Comp. Phys. Comm. 31 97–111
Error Indicators and Warnings
Accuracy
At least significant digits are correct. Such accuracy is normally considered to be adequate for applications in large scale Monte–Carlo simulations.
Parallelism and Performance
None.
Further Comments
None.
Example
This example evaluates at , and prints the results.
Example program (C#): g01fte.cs