fix math.h

Declare sin/cos and M_PI in math.h.
This commit is contained in:
Grissiom 2013-01-09 21:37:41 +08:00
parent accace98e0
commit 1bb22a0a0b
2 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,6 @@
*/
#define PRECISION 9
#define M_PI 3.141592653589793238462643
static double cos_off_tbl[] = {0.0, -M_PI/2., 0, -M_PI/2.};
static double cos_sign_tbl[] = {1,-1,-1,1};

View File

@ -1,4 +1,9 @@
#ifndef __STDIO_H__
#define __STDIO_H__
#ifndef __MATH_H__
#define __MATH_H__
#define M_PI 3.141592653589793238462643
double sin(double x);
double cos(double x);
#endif