[R] Extending the accuracy of exp(1) in R
    David Winsemius 
    dwinsemius at comcast.net
       
    Tue Nov  9 14:33:41 CET 2010
    
    
  
On Nov 9, 2010, at 8:21 AM, Shant Ch wrote:
> Hi,
>
> I want to use a more accurate value of exp(1).  The value given by R  
> is
> 2.718282.
Well, not really. That is what is printed at the console with the  
default settings for digits. The internal representation is wider:
 > format(exp(1), digits=15)
[1] "2.71828182845905"
> I want a value which has more than 15 decimal places. Can anyone let
> me know how can I increase the accuracy level.
You already have it.
>
> Actually there are some large multipliers of exp(1) in my whole  
> expression, and
> I want a more accurate result at the last step of my program, and  
> for that I
> need to use highly accurate value of exp(1).
>
> Can anyone help me out? Thanks.
>
> Shant
David Winsemius, MD
West Hartford, CT
    
    
More information about the R-help
mailing list