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 28... Line 28...
28
 
28
 
29
#include "nmath.h"
29
#include "nmath.h"
30
 
30
 
31
double rt(double df)
31
double rt(double df)
32
{
32
{
33
    if (ISNAN(df) || df <= 0.0)	ML_ERR_return_NAN;
33
    if (ISNAN(df) || df <= 0.0)	ML_WARN_return_NAN;
34
 
34
 
35
    if(!R_FINITE(df))
35
    if(!R_FINITE(df))
36
	return norm_rand();
36
	return norm_rand();
37
    else {
37
    else {
38
/* Some compilers (including MW6) evaluated this from right to left
38
/* Some compilers (including MW6) evaluated this from right to left