1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #if defined(LIBM_SCCS) && !defined(lint)
- static char rcsid[] = "$NetBSD: w_jn.c,v 1.6 1995/05/10 20:49:19 jtc Exp $";
- #endif
- #include "math.h"
- #include "math_private.h"
- #ifdef __STDC__
- double jn(int n, double x)
- #else
- double jn(n,x)
- double x; int n;
- #endif
- {
- #ifdef _IEEE_LIBM
- return __ieee754_jn(n,x);
- #else
- double z;
- z = __ieee754_jn(n,x);
- if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
- if(fabs(x)>X_TLOSS) {
- return __kernel_standard((double)n,x,38);
- } else
- return z;
- #endif
- }
- #ifdef __STDC__
- double yn(int n, double x)
- #else
- double yn(n,x)
- double x; int n;
- #endif
- {
- #ifdef _IEEE_LIBM
- return __ieee754_yn(n,x);
- #else
- double z;
- z = __ieee754_yn(n,x);
- if(_LIB_VERSION == _IEEE_ || isnan(x) ) return z;
- if(x <= 0.0){
- if(x==0.0)
-
- return __kernel_standard((double)n,x,12);
- else
-
- return __kernel_standard((double)n,x,13);
- }
- if(x>X_TLOSS) {
- return __kernel_standard((double)n,x,39);
- } else
- return z;
- #endif
- }
|