[R] log of small values in R

Martin Møller Skarbiniks Pedersen tr@xp|@yer @end|ng |rom gm@||@com
Wed Jan 13 23:54:44 CET 2021

On Mon, 11 Jan 2021 at 08:22, Shaami <nzshaam using gmail.com> wrote:
> Dear Friends        I am facing the problem of log values in R. The
> log(1-0.99999999999999999) is giving -Inf while log(1e-18) gives finite
> answer. Any suggestion to deal with this problem?  Thank you

This vignette has a lot of good information about log of small numbers.

vignette(package = "Rmpfr", "log1mexp-note")

Martin M. S. Pedersen

	[[alternative HTML version deleted]]

More information about the R-help mailing list