LogRel(z) = log(1+z) with relative error accuracy near z = 0.
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function LogRel ( _ x As Double, _ bDebug As Boolean _ ) As Double |
| C# |
|---|
public static double LogRel ( double x, bool bDebug ) |
| C++ |
|---|
public: static double LogRel ( double x, bool bDebug ) |
Parameters
- x (Double)
- The function argument.
- bDebug (Boolean)
- If true, an exception will be thrown if errors occur, if false, double.NaN is returned in this case.
Return Value
Remarks
1June 1977 edition. W. Fullerton, c3, Los Alamos Scientific Lab. 2 3series for alnr on the interval -3.75000e-01 to 3.75000e-01 4 with weighted error 6.35e-32 5 log weighted error 31.20 6 significant figures required 30.93 7 decimal places required 32.01