Evaluation of the function x - ln(1 + x)

View versions (1)

Interface

#include <codecogs/maths/combinatorics/arithmetic/xsub_ln_add1.h>

using namespace Maths::Combinatorics::Arithmetic;

Evaluations the function

x - ln(1 + x)
(1)

Use when x is small, in the range 0.39 < x < 0.57, and expansion of this function yeilds a more accurate answer. For langer values of x, the solution is merely calculated in the usual way.

References

DiDinato, A. R. and Morris, A. H. Algorithm 708: Significant Digit Computation of the Incomplete Beta Function Ratios. ACM Trans. Math. Softw. 18 (1993), 360-373.

Parameters

x
the value at which to evaluate the function
GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

x
Result