aboutsummaryrefslogtreecommitdiff
path: root/src/pj_tsfn.c
blob: 448aae99e17c038c5656eead04f84f3f6159786f (plain)
1
2
3
4
5
6
7
8
9
10
/* determine small t */
#include <math.h>
#include <projects.h>

	double
pj_tsfn(double phi, double sinphi, double e) {
	sinphi *= e;
	return (tan (.5 * (M_HALFPI - phi)) /
	   pow((1. - sinphi) / (1. + sinphi), .5 * e));
}