The R Project SVN R

Rev

Rev 68947 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68947 Rev 77685
Line 29... Line 29...
29
{
29
{
30
#ifdef IEEE_754
30
#ifdef IEEE_754
31
    if (ISNAN(x) || ISNAN(meanlog) || ISNAN(sdlog))
31
    if (ISNAN(x) || ISNAN(meanlog) || ISNAN(sdlog))
32
	return x + meanlog + sdlog;
32
	return x + meanlog + sdlog;
33
#endif
33
#endif
34
    if (sdlog < 0) ML_ERR_return_NAN;
34
    if (sdlog < 0) ML_WARN_return_NAN;
35
 
35
 
36
    if (x > 0)
36
    if (x > 0)
37
	return pnorm(log(x), meanlog, sdlog, lower_tail, log_p);
37
	return pnorm(log(x), meanlog, sdlog, lower_tail, log_p);
38
    return R_DT_0;
38
    return R_DT_0;
39
}
39
}