The R Project SVN R

Rev

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

Rev 70913 Rev 77685
Line 30... Line 30...
30
{
30
{
31
#ifdef IEEE_754
31
#ifdef IEEE_754
32
    if (ISNAN(p) || ISNAN(prob))
32
    if (ISNAN(p) || ISNAN(prob))
33
	return p + prob;
33
	return p + prob;
34
#endif
34
#endif
35
    if (prob <= 0 || prob > 1) ML_ERR_return_NAN;
35
    if (prob <= 0 || prob > 1) ML_WARN_return_NAN;
36
 
36
 
37
    R_Q_P01_check(p);
37
    R_Q_P01_check(p);
38
    if (prob == 1) return(0);
38
    if (prob == 1) return(0);
39
    R_Q_P01_boundaries(p, 0, ML_POSINF);
39
    R_Q_P01_boundaries(p, 0, ML_POSINF);
40
 
40