aboutsummaryrefslogtreecommitdiff
path: root/src/pj_tsfn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_tsfn.c')
-rw-r--r--src/pj_tsfn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_tsfn.c b/src/pj_tsfn.c
index d9dc0bc4..448aae99 100644
--- a/src/pj_tsfn.c
+++ b/src/pj_tsfn.c
@@ -1,10 +1,10 @@
/* determine small t */
#include <math.h>
#include <projects.h>
-#define HALFPI 1.5707963267948966
+
double
pj_tsfn(double phi, double sinphi, double e) {
sinphi *= e;
- return (tan (.5 * (HALFPI - phi)) /
+ return (tan (.5 * (M_HALFPI - phi)) /
pow((1. - sinphi) / (1. + sinphi), .5 * e));
}