public class MecatorTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
int i;
System.out.println("latitude -> new value ( radian multiple)");
for (int y=-90; y<= 90; ++y)
{
double ret = Math.log(Math.tan(Math.toRadians(y)/2 + Math.PI/4));
double degree = Math.toDegrees(Math.log(Math.tan(Math.toRadians(y)/2 + Math.PI/4)));
System.out.println(y + " -> " + degree + " (" + ret + ")");
}
}
}
----------------------------
latitude -> new latitude ( raian multiple)
-90 -> -Infinity (-Infinity)
-89 -> -271.6592731684816 (-4.7413487603646916)
-88 -> -231.9405014301723 (-4.0481254186831235)
-87 -> -208.7017881102835 (-3.6425333573240013)
-86 -> -192.20863390527 (-3.354673512407368)
-85 -> -179.4103506770204 (-3.1313013314716436)
-84 -> -168.94807874816587 (-2.9487002390741544)
-83 -> -160.09695905394648 (-2.794219057921912)
-82 -> -152.4243133219208 (-2.660306127558974)
-81 -> -145.65105312684096 (-2.542090436060557)
-80 -> -139.58661673332182 (-2.436246053715877)
-79 -> -134.09508205132613 (-2.340400692527593)
-78 -> -129.07608703927488 (-2.252802704426126)
-77 -> -124.4534134259643 (-2.1721218296287934)
-76 -> -120.16781328354246 (-2.0973239967195942)
-75 -> -116.17231645451844 (-2.027589421800132)
-74 -> -112.42905553448549 (-1.962257193984325)
-73 -> -108.90705509429326 (-1.9007866900462809)
-72 -> -105.58065377036951 (-1.842730034701113)
-71 -> -102.428353543872 (-1.7877120167373686)
-70 -> -99.43196452393686 (-1.7354151626688943)
-69 -> -96.57595860337419 (-1.685568455898624)
-68 -> -93.8469736101792 (-1.6379386825298565)
-67 -> -91.23342776857211 (-1.5923237024420067)
-66 -> -88.72521627085632 (-1.5485471534704878)
-65 -> -86.31346982871972 (-1.5064542373319452)
-64 -> -83.99036060549311 (-1.465908332503193)
-63 -> -81.7489447913413 (-1.4267882466399746)
-62 -> -79.58303381945588 (-1.3889859688755035)
-61 -> -77.48708818855653 (-1.35240481667352)
-60 -> -75.4561292902169 (-1.3169578969248166)
-59 -> -73.4856656964653 (-1.2825668194231714)
-58 -> -71.5716311513826 (-1.2491606146145666)
-57 -> -69.71033210449572 (-1.216674817882158)
-56 -> -67.89840307586546 (-1.1850506905200975)
-55 -> -66.13276848995456 (-1.1542345536088656)
-54 -> -64.41060988425942 (-1.1241772156979304)
-53 -> -62.72933760860979 (-1.0948334788653469)
-52 -> -61.086566296153066 (-1.0661617106056684)
-51 -> -59.48009351782137 (-1.0381234712801195)
-50 -> -57.90788113636137 (-1.0106831886830214)
-49 -> -56.36803895967634 (-0.9838078727387912)
-48 -> -54.85881036076458 (-0.9574668645225202)
-47 -> -53.37855958635194 (-0.9316316147538237)
-46 -> -51.9257605210464 (-0.906275487694346)
-45 -> -50.49898671052621 (-0.881373587019543)
-44 -> -49.09690247750396 (-0.8569026007630053)
-43 -> -47.71825498923721 (-0.8328406628684006)
-42 -> -46.3618671561659 (-0.8091672292473151)
-41 -> -45.02663125863297 (-0.7858629665445438)
-40 -> -43.711503213210875 (-0.7629096520666107)
-39 -> -42.415497402413685 (-0.7402900835432211)
-38 -> -41.137682001926734 (-0.7179879975720338)
-37 -> -39.87717474825906 (-0.6959879957502615)
-36 -> -38.63313909718436 (-0.6742754776268166)
-35 -> -37.40478072970034 (-0.652836579719798)
-34 -> -36.19134436768234 (-0.6316581199391621)
-33 -> -34.992110866080836 (-0.6107275468359952)
-32 -> -33.806394552534634 (-0.5900328931700045)
-31 -> -32.63354078874331 (-0.569562733347438)
-30 -> -31.47292373094537 (-0.5493061443340547)
-29 -> -30.323944269454767 (-0.5292526696932522)
-28 -> -29.186028129471936 (-0.5093922864389672)
-27 -> -28.05862411736177 (-0.4897153744274507)
-26 -> -26.941202498312716 (-0.470212688042079)
-25 -> -25.833253492801713 (-0.45087532995171514)
-24 -> -24.734285880611957 (-0.4316947267462237)
-23 -> -23.643825702313244 (-0.4126626062730268)
-22 -> -22.56141504913775 (-0.39377097651645204)
-21 -> -21.486610933085977 (-0.37501210587736133)
-20 -> -20.41898422989406 (-0.3563785047244501)
-19 -> -19.358118688197465 (-0.3378629081008913)
-18 -> -18.303609998849545 (-0.3194582594808801)
-17 -> -17.255064918905756 (-0.30115769548027377)
-16 -> -16.212100445273887 (-0.28295453143406807)
-15 -> -15.174343033465998 (-0.26484224776104576)
-14 -> -14.141427857273186 (-0.24681447704266385)
-13 -> -13.11299810552765 (-0.22886499174923633)
-12 -> -12.088704312420587 (-0.21098769255177646)
-11 -> -11.068203718114832 (-0.19317659716258218)
-10 -> -10.051159656630126 (-0.1754258296518184)
-9 -> -9.037240968191009 (-0.15772961019105322)
-8 -> -8.026121433414186 (-0.14008224517796436)
-7 -> -7.017479226876339 (-0.12247811769929826)
-6 -> -6.010996387747388 (-0.10491167829167766)
-5 -> -5.0063583052991465 (-0.08737743596203358)
-4 -> -4.003253217207089 (-0.06986994943131941)
-3 -> -3.001371718654584 (-0.052383818566763406)
-2 -> -2.000406280325892 (-0.03491367596925948)
-1 -> -1.0000507734366384 (-0.017454178683585186)
0 -> -6.3611093629270335E-15 (-1.1102230246251565E-16)
1 -> 1.0000507734366282 (0.017454178683585012)
2 -> 2.00040628032589 (0.03491367596925945)
3 -> 3.0013717186545756 (0.05238381856676326)
4 -> 4.003253217207082 (0.0698699494313193)
5 -> 5.006358305299131 (0.08737743596203332)
6 -> 6.010996387747383 (0.10491167829167757)
7 -> 7.01747922687634 (0.12247811769929828)
8 -> 8.026121433414179 (0.14008224517796425)
9 -> 9.037240968190998 (0.15772961019105305)
10 -> 10.051159656630123 (0.17542582965181833)
11 -> 11.068203718114829 (0.19317659716258212)
12 -> 12.08870431242058 (0.21098769255177638)
13 -> 13.112998105527636 (0.22886499174923608)
14 -> 14.141427857273177 (0.24681447704266368)
15 -> 15.174343033465993 (0.26484224776104565)
16 -> 16.21210044527388 (0.28295453143406796)
17 -> 17.255064918905745 (0.3011576954802736)
18 -> 18.303609998849538 (0.31945825948087997)
19 -> 19.358118688197454 (0.3378629081008911)
20 -> 20.41898422989405 (0.35637850472444993)
21 -> 21.486610933085966 (0.37501210587736117)
22 -> 22.561415049137743 (0.3937709765164519)
23 -> 23.643825702313237 (0.41266260627302664)
24 -> 24.73428588061195 (0.43169472674622356)
25 -> 25.833253492801713 (0.45087532995171514)
26 -> 26.941202498312716 (0.470212688042079)
27 -> 28.05862411736176 (0.48971537442745056)
28 -> 29.186028129471918 (0.5093922864389668)
29 -> 30.323944269454763 (0.5292526696932521)
30 -> 31.472923730945364 (0.5493061443340546)
31 -> 32.633540788743296 (0.5695627333474378)
32 -> 33.806394552534634 (0.5900328931700044)
33 -> 34.992110866080814 (0.6107275468359948)
34 -> 36.19134436768233 (0.631658119939162)
35 -> 37.40478072970034 (0.652836579719798)
36 -> 38.63313909718435 (0.6742754776268165)
37 -> 39.877174748259044 (0.6959879957502612)
38 -> 41.13768200192672 (0.7179879975720336)
39 -> 42.415497402413706 (0.7402900835432213)
40 -> 43.711503213210875 (0.7629096520666107)
41 -> 45.02663125863295 (0.7858629665445435)
42 -> 46.3618671561659 (0.8091672292473151)
43 -> 47.718254989237195 (0.8328406628684004)
44 -> 49.09690247750397 (0.8569026007630054)
45 -> 50.49898671052621 (0.8813735870195429)
46 -> 51.925760521046385 (0.9062754876943456)
47 -> 53.378559586351926 (0.9316316147538235)
48 -> 54.85881036076456 (0.9574668645225197)
49 -> 56.36803895967634 (0.9838078727387912)
50 -> 57.907881136361354 (1.010683188683021)
51 -> 59.48009351782134 (1.0381234712801188)
52 -> 61.086566296153066 (1.0661617106056684)
53 -> 62.7293376086098 (1.094833478865347)
54 -> 64.41060988425939 (1.12417721569793)
55 -> 66.13276848995453 (1.154234553608865)
56 -> 67.89840307586545 (1.1850506905200973)
57 -> 69.71033210449569 (1.2166748178821576)
58 -> 71.5716311513826 (1.2491606146145664)
59 -> 73.4856656964653 (1.2825668194231714)
60 -> 75.45612929021685 (1.316957896924816)
61 -> 77.4870881885565 (1.3524048166735196)
62 -> 79.58303381945588 (1.3889859688755035)
63 -> 81.7489447913413 (1.4267882466399744)
64 -> 83.99036060549308 (1.4659083325031923)
65 -> 86.3134698287197 (1.5064542373319447)
66 -> 88.7252162708563 (1.5485471534704873)
67 -> 91.2334277685721 (1.5923237024420063)
68 -> 93.84697361017918 (1.637938682529856)
69 -> 96.57595860337415 (1.6855684558986235)
70 -> 99.43196452393684 (1.7354151626688938)
71 -> 102.42835354387203 (1.787712016737369)
72 -> 105.58065377036948 (1.8427300347011126)
73 -> 108.9070550942932 (1.9007866900462798)
74 -> 112.42905553448547 (1.9622571939843245)
75 -> 116.17231645451845 (2.0275894218001325)
76 -> 120.1678132835424 (2.0973239967195934)
77 -> 124.45341342596429 (2.172121829628793)
78 -> 129.07608703927485 (2.2528027044261254)
79 -> 134.09508205132607 (2.340400692527592)
80 -> 139.58661673332185 (2.4362460537158777)
81 -> 145.65105312684094 (2.542090436060556)
82 -> 152.42431332192066 (2.6603061275589712)
83 -> 160.09695905394645 (2.7942190579219113)
84 -> 168.94807874816593 (2.9487002390741552)
85 -> 179.41035067702046 (3.131301331471645)
86 -> 192.20863390526972 (3.3546735124073632)
87 -> 208.7017881102831 (3.6425333573239946)
88 -> 231.9405014301721 (4.04812541868312)
89 -> 271.6592731684819 (4.741348760364697)
90 -> 2138.957801263633 (37.33185619326892)