ReactOS  0.4.15-dev-5649-gd5999c6
asin.c File Reference

Go to the source code of this file.

Macros

#define PRECISION   9
 

Functions

double asin (double x)
 

Macro Definition Documentation

◆ PRECISION

#define PRECISION   9

Definition at line 9 of file asin.c.

Function Documentation

◆ asin()

double asin ( double  x)

Definition at line 31 of file asin.c.

32 {
33  double x2, result;
34 
35  /* Check range */
36  if ((x > 1.) || (x < -1.)) return NaN;
37 
38  /* Calculate the square of x */
39  x2 = (x * x);
40 
41  /* Start with 0, compiler will optimize this away */
42  result = 0;
43 
44  result += (15*13*11*9*7*5*3*1./(16*14*12*10*8*6*4*2*17));
45  result *= x2;
46 
47  result += (13*11*9*7*5*3*1./(14*12*10*8*6*4*2*15));
48  result *= x2;
49 
50  result += (11*9*7*5*3*1./(12*10*8*6*4*2*13));
51  result *= x2;
52 
53  result += (9*7*5*3*1./(10*8*6*4*2*11));
54  result *= x2;
55 
56  result += (7*5*3*1./(8*6*4*2*9));
57  result *= x2;
58 
59  result += (5*3*1./(6*4*2*7));
60  result *= x2;
61 
62  result += (3*1./(4*2*5));
63  result *= x2;
64 
65  result += (1./(2*3));
66  result *= x2;
67 
68  result += 1.;
69  result *= x;
70 
71  return result;
72 }
GLuint64EXT * result
Definition: glext.h:11304
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706