Re: [R] Problem to compute a function with very large numbers

2010-08-20 Thread Hans W Borchers
Nan Zhao student.ethz.ch> writes: > > Thank you Dennis for your explanations! > > The results you found are the same as mine. with first an infinity result, > followed by NaN. It seems that, when the number becomes too small, R must > round it up to 0. Hence I was wondering if there might a way

Re: [R] Problem to compute a function with very large numbers

2010-08-20 Thread Nan Zhao
Thank you Dennis for your explanations! The results you found are the same as mine. with first an infinity result, followed by NaN. It seems that, when the number becomes too small, R must round it up to 0. Hence I was wondering if there might a way to increase the number of decimals for extremal

Re: [R] Problem to compute a function with very large numbers

2010-08-20 Thread Dennis Murphy
Hi: I had no problem getting the function to 'run', but it appears the execution time starts to rise dramatically after 1: > system.time(x <- Wi(100)) user system elapsed 0.030.000.03 > system.time(x <- Wi(1000)) user system elapsed 0.280.000.28 > system.time(x <

[R] Problem to compute a function with very large numbers

2010-08-20 Thread Nan Zhao
Dear R users, I have been trying to compute the following function and need it to work with n=15000, but it would only compute for smaller ns, such as n=1000 and not above. I was wondering if anyone would have a solution for this problem! Thank you very much for your kind support! Sincerely, Nan