[Rd] dweibull retuns NaN instead of Inf (PR#9080)

From: <goran.brostrom_at_gmail.com>
Date: Fri 14 Jul 2006 - 17:08:31 GMT

Full_Name: Göran Broström
Version: 2.3.1
OS: Linux, ubuntu
Submission from: (NULL) (

> dweibull(0, 0.5, 1)
[1] NaN
Warning message:
NaNs produced in: dweibull(x, shape, scale, log)

should give Inf (and no Warning). Compare with

> dgamma(0, 0.5, 1)
[1] Inf

This happens when 'shape' < 1.

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Jul 15 03:23:36 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 Fri 14 Jul 2006 - 18:27:28 GMT.

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