aboutsummaryrefslogtreecommitdiff
path: root/src/pj_msfn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_msfn.c')
-rw-r--r--src/pj_msfn.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pj_msfn.c b/src/pj_msfn.c
new file mode 100644
index 00000000..55e3983c
--- /dev/null
+++ b/src/pj_msfn.c
@@ -0,0 +1,9 @@
+/* determine constant small m */
+#ifndef lint
+static const char SCCSID[]="@(#)pj_msfn.c 4.3 93/06/12 GIE REL";
+#endif
+#include <math.h>
+ double
+pj_msfn(double sinphi, double cosphi, double es) {
+ return (cosphi / sqrt (1. - es * sinphi * sinphi));
+}