[Rd] pnorm conditional (PR#2883)

dbpemste at artsci.wustl.edu dbpemste at artsci.wustl.edu
Wed Apr 30 20:20:36 MEST 2003

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I was going over the source in src/nmath/pnorm.c and noticed a little
bug in pnorm_both (in R 1.7.0).  The else-if on line 205 covers the
entire real line.  Seems you want an &&, not an ||.  Doesn't make a big
difference (you still get a 0 or 1 from extreme starting values) but
your log refinements will always be skipped.

Daniel Pemstein
Email: dbpemste at artsci.wustl.edu, dan at lcws.org
Web: http://www.danpemstein.com
PGP: http://www.danpemstein.com/files/pgp.txt

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org



More information about the R-devel mailing list