Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
k_sin.c File Reference
#include "fdlibm.h"

Go to the source code of this file.


double __kernel_sin (double x, double y, int iy)


static double half = 5.00000000000000000000e-01
static double S1 = -1.66666666666666324348e-01
static double S2 = 8.33333333332248946124e-03
static double S3 = -1.98412698298579493134e-04
static double S4 = 2.75573137070700676789e-06
static double S5 = -2.50507602534068634195e-08
static double S6 = 1.58969099521155010221e-10

Function Documentation

double __kernel_sin ( double  x,
double  y,
int  iy 

Definition at line 98 of file k_sin.c.

        fd_twoints u;
       double z,r,v;
       int ix;
        u.d = x;
       ix = __HI(u)&0x7fffffff;    /* high word of x */
       if(ix<0x3e400000)                  /* |x| < 2**-27 */
          {if((int)x==0) return x;}              /* generate inexact */
       z      =  x*x;
       v      =  z*x;
       r      =  S2+z*(S3+z*(S4+z*(S5+z*S6)));
       if(iy==0) return x+v*(S1+z*r);
       else      return x-((z*(half*y-v*r)-y)-v*S1);

Here is the caller graph for this function:

Variable Documentation

double half = 5.00000000000000000000e-01 [static]

Definition at line 87 of file k_sin.c.

double S1 = -1.66666666666666324348e-01 [static]

Definition at line 88 of file k_sin.c.

double S2 = 8.33333333332248946124e-03 [static]

Definition at line 89 of file k_sin.c.

double S3 = -1.98412698298579493134e-04 [static]

Definition at line 90 of file k_sin.c.

double S4 = 2.75573137070700676789e-06 [static]

Definition at line 91 of file k_sin.c.

double S5 = -2.50507602534068634195e-08 [static]

Definition at line 92 of file k_sin.c.

double S6 = 1.58969099521155010221e-10 [static]

Definition at line 93 of file k_sin.c.