[R] Help for numbers close to 1 in R
Gabor Grothendieck
ggrothendieck at gmail.com
Sat Feb 13 16:45:03 CET 2010
Check out ?expm1
On Sat, Feb 13, 2010 at 9:17 AM, cjmr <cjregunay at 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 at 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.
>
More information about the R-help
mailing list