Check out ?expm1 On Sat, Feb 13, 2010 at 9:17 AM, cjmr <cjregu...@gmail.com> wrote: > > Hi all. > > I have a problem with adding 1 and very small numbers > > ex: >>p=1e-49 >>1+p > [1] 1 > > My problem comes from some values of x for the value: > 1-exp(-sum((x-1/sqrt(3))^2)) > the return values are always equivalent. > > Please help > Thanks > -- > View this message in context: > http://n4.nabble.com/Help-for-numbers-close-to-1-in-R-tp1554416p1554416.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.