Re: [Rd] pnorm problem (PR#7302)

2004-10-21 Thread Morten Welinder

Mea culpa.

Chalk this up to incorrect mucking with the trunc function on my
side, a very old bug here.  Apologies.

Morten

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] pnorm problem (PR#7302)

2004-10-21 Thread Prof Brian Ripley
On Thu, 21 Oct 2004, Uwe Ligges wrote:

> [EMAIL PROTECTED] wrote:
> > Full_Name: Morten Welinder
> > Version: 2
> > OS: Solaris(sparc)
> > Submission from: (NULL) (65.213.85.208)
> > 
> 
> Works for me with R-2.0.0, Solaris 5.7 (UltraSparc), gcc-3.2.3, 32-bit.
> So you have to specify compiler version, OS version, R version etc. much 
> more precisely.

And for me under Solaris 8, gcc-3.4.2 or Sun cc Forte 7, 32- or 64-bit, 
with options as recommended in R-admin.

I suspect this is caused by unsafe compiler options.

> > (gdb) p pnorm(-10.1, 0.0, 1.0, 0, 1)
> > $42 = NaN(0xf)
> > 
> > Expected: -0
> > 
> > (gdb) p pnorm(-10.0, 0.0, 1.0, 0, 1)
> > $43 = -0
> > 
> > Good.
> > 
> > (I know this is not a typical usage.)

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] pnorm problem (PR#7302)

2004-10-21 Thread Uwe Ligges
[EMAIL PROTECTED] wrote:
Full_Name: Morten Welinder
Version: 2
OS: Solaris(sparc)
Submission from: (NULL) (65.213.85.208)
Works for me with R-2.0.0, Solaris 5.7 (UltraSparc), gcc-3.2.3, 32-bit.
So you have to specify compiler version, OS version, R version etc. much 
more precisely.

Uwe Ligges

(gdb) p pnorm(-10.1, 0.0, 1.0, 0, 1)
$42 = NaN(0xf)
Expected: -0
(gdb) p pnorm(-10.0, 0.0, 1.0, 0, 1)
$43 = -0
Good.
(I know this is not a typical usage.)
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] pnorm problem (PR#7302)

2004-10-21 Thread terra
Full_Name: Morten Welinder
Version: 2
OS: Solaris(sparc)
Submission from: (NULL) (65.213.85.208)


(gdb) p pnorm(-10.1, 0.0, 1.0, 0, 1)
$42 = NaN(0xf)

Expected: -0

(gdb) p pnorm(-10.0, 0.0, 1.0, 0, 1)
$43 = -0

Good.

(I know this is not a typical usage.)

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel