diff options
| -rw-r--r-- | mathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Mathematics library to LUA | 3 | ** Mathematics library to LUA |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.7 1994/12/16 15:53:57 roberto Exp roberto $"; | 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> /* NULL */ | 8 | #include <stdio.h> /* NULL */ |
| 9 | #include <math.h> | 9 | #include <math.h> |
| @@ -11,7 +11,7 @@ char *rcs_mathlib="$Id: mathlib.c,v 1.7 1994/12/16 15:53:57 roberto Exp roberto | |||
| 11 | #include "lualib.h" | 11 | #include "lualib.h" |
| 12 | #include "lua.h" | 12 | #include "lua.h" |
| 13 | 13 | ||
| 14 | #define PI (3.141592653589793) | 14 | #define PI 3.14159265358979323846 |
| 15 | #define TODEGREE(a) ((a)*180.0/PI) | 15 | #define TODEGREE(a) ((a)*180.0/PI) |
| 16 | #define TORAD(a) ((a)*PI/180.0) | 16 | #define TORAD(a) ((a)*PI/180.0) |
| 17 | 17 | ||
