Menu

[r8871]: / trunk / toolkits / basemap / src / pj_qsfn.c  Maximize  Restore  History

Download this file

17 lines (14 with data), 337 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
/* determine small q */
#include <math.h>
#include <projects.h>
# define EPSILON 1.0e-7
double
pj_qsfn(double sinphi, double e, double one_es) {
double con;
if (e >= EPSILON) {
con = e * sinphi;
return (one_es * (sinphi / (1. - con * con) -
(.5 / e) * log ((1. - con) / (1. + con))));
} else
return (sinphi + sinphi);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.