The R Project SVN R

Rev

Rev 19500 | Rev 34643 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19500 Rev 22933
Line 1... Line 1...
1
/*
1
/*
2
 *  Mathlib : A C Library of Special Functions
2
 *  Mathlib : A C Library of Special Functions
3
 *  Copyright (C) 1998-2001 Ross Ihaka and the R Development Core team.
3
 *  Copyright (C) 1998-2003 Ross Ihaka and the R Development Core team.
4
 *
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 of the License, or
7
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  (at your option) any later version.
8
 *  (at your option) any later version.
Line 35... Line 35...
35
 
35
 
36
double bessel_y(double x, double alpha)
36
double bessel_y(double x, double alpha)
37
{
37
{
38
    long nb, ncalc;
38
    long nb, ncalc;
39
    double *by;
39
    double *by;
-
 
40
#ifndef MATHLIB_STANDALONE
40
    char *vmax;
41
    char *vmax;
-
 
42
#endif
41
 
43
 
42
#ifdef IEEE_754
44
#ifdef IEEE_754
43
    /* NaNs propagated correctly */
45
    /* NaNs propagated correctly */
44
    if (ISNAN(x) || ISNAN(alpha)) return x + alpha;
46
    if (ISNAN(x) || ISNAN(alpha)) return x + alpha;
45
#endif
47
#endif