From: Gichangi, Anthony <anthony_at_stat.sdu.dk>

Date: Fri 19 May 2006 - 22:25:51 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 19 22:29:37 2006

Date: Fri 19 May 2006 - 22:25:51 EST

f <-function(x,p)sqrt(-(x^2)-2*log(1-p))

on executing i get the following results

*> f(r1,0.95)
*

[1] 0

*>
**> f(r2,0.95)
*

[1] NaN

Warning message:

NaNs produced in: sqrt(-(x^2) - 2 * log(1 - p))

[1] -2.9957322735539909

*> print(log(1-0.95),digit=22)
*

Regards

Anthony

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 19 22:29:37 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Sat 20 May 2006 - 00:10:16 EST.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*