diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-02-06 17:36:43 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-02-06 17:36:43 -0200 |
commit | 3203460c9e44f44e4586ecee6b1cb528db9150c7 (patch) | |
tree | d74fd831b433458444a151f3118c284da1cb4e07 | |
parent | bb00cd66a76b2b6cc781238c6b36b56a9b48f80a (diff) | |
download | lua-3203460c9e44f44e4586ecee6b1cb528db9150c7.tar.gz lua-3203460c9e44f44e4586ecee6b1cb528db9150c7.tar.bz2 lua-3203460c9e44f44e4586ecee6b1cb528db9150c7.zip |
better approximation for PI
-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 | ||