Given that I know the value of $\log(x)$, I would like to calculate the value of $\log(x+1)$ on a computer.
I know that I could use the Taylor expansion of $\log(1+x)$, but that uses $x$ rather than $\log(x)$. The reason I do not want to use $x$ directly is because $\log(x)$ can get low values such as $-1000$, and this will cause an underflow.
My question is if there is a way of directly relating $\log(x)$ to $\log(1+x)$?
Given $y=\ln x$ and assuming double precision float arithmetic, you can safely approximate
Actually, most CPUs have a builtin $\ln(1+x)$ suited for this problem