Skip to content

flight-earth/oblate-spheroid

Repository files navigation

Oblate Spheroid

Geodesy problems and their solutions.

$ lake build
...
[425/454] Building Std
[427/454] Compiling Std
[427/454] Building Units.DMS
[429/454] Compiling Units.DMS
[429/454] Building Units
[430/454] Compiling Units
[430/454] Building Earth.Sphere
[430/454] Building LatLng
[430/454] Building Earth.Ellipsoid
[433/454] Compiling Earth.Sphere
[434/454] Compiling LatLng
[434/454] Building Geodesy.Problems
[435/454] Compiling Earth.Ellipsoid
[435/454] Building Earth
[439/454] Compiling Earth
[441/454] Compiling Geodesy.Problems
[441/454] Building Geodesy.Haversines
[441/454] Building Geodesy.Cylinder.Vincenty
[441/454] Building Geodesy.PointToPoint.Vincenty
[443/454] Compiling Geodesy.Haversines
[444/454] Compiling Geodesy.Cylinder.Vincenty
[446/454] Compiling Geodesy.PointToPoint.Vincenty
[446/454] Building Geodesy.Published.Vincenty1975
[449/454] Compiling Geodesy.Published.Vincenty1975
[449/454] Building Geodesy
[450/454] Compiling Geodesy
[450/454] Building Main
[453/454] Compiling Main
[454/454] Linking oblate-spheroid

$ .lake/build/bin/oblate-spheroid
London: (51°30′2.5200000000069167072069831192493438720703125″, 0°7′28.559999999999998721023075631819665431976318359375″)
New York: (40°41′21.11999999999852661858312785625457763671875″, -74°2′40.19999999999754436430521309375762939453125″)
Distance LON -> NYC: 5574840.456848554313182830810546875
DMS: 90°12′0.99899999999999999911182158029987476766109466552734375″
90°12′0.5″: ok: 90°12′0.5″
eq 90°12′0.9999000000000000110134124042815528810024261474609375″: ok: 90°12′0.9999000000000000110134124042815528810024261474609375″
from-deg 0°0′0″: ok: 0°0′0″
from-deg 1°0′0″: ok: 1°0′0″
from-deg -1°0′0″: ok: -1°0′0″
from-deg 169°3′59.99999839625161257572472095489501953125″: ok: 169°3′59.99999839625161257572472095489501953125″
from-deg -169°3′59.99999839625161257572472095489501953125″: ok: -169°3′59.99999839625161257572472095489501953125″
from-deg 0°: ok: 0°
from-deg 289.5°: ok: 289.5°
eq normalize0°0′0″: ok: 0°0′0″
eq normalize180°0′0″: ok: 180°0′0″
eq normalize1°0′0″: ok: 1°0′0″
eq normalize180°0′0″: ok: 180°0′0″
eq normalize359°0′0″: ok: 359°0′0″
eq normalize0°0′0″: ok: 0°0′0″
eq normalize180°0′0″: ok: 180°0′0″
eq normalize180°0′0″: ok: 180°0′0″
eq normalize359°0′0″: ok: 359°0′0″
eq normalize190°56′0.00000160374838742427527904510498046875″: ok: 190°56′0.00000160374838742427527904510498046875″
eq normalize169°3′59.99999839625161257572472095489501953125″: ok: 169°3′59.99999839625161257572472095489501953125″
Vincenty 1975 Published Data Checks
(55°45′0″, 0°0′0″) to (-33°25′59.9999999999880628820392303168773651123046875″, 108°13′0.00000000000682121026329696178436279296875″) = 14110526.16999999992549419403076171875 ± 0.008000000000000000166533453693773481063544750213623046875
expected: 0.000404 <= 0.000404
(37°19′54.9536699999697475504945032298564910888671875″, 0°0′0″) to (26°7′42.83945999999787090928293764591217041015625″, 41°28′35.5072900000192248626262880861759185791015625″) = 4085966.7030000002123415470123291015625 ± 0.008000000000000000166533453693773481063544750213623046875
(35°16′11.248620000000073559931479394435882568359375″, 0°0′0″) to (67°22′14.77638000000524698407389223575592041015625″, 137°47′28.31435000004375979187898337841033935546875″) = 8084823.83899999968707561492919921875 ± 0.008000000000000000166533453693773481063544750213623046875
(1°0′0″, 0°0′0″) to (0°59′53.830760000000026366251404397189617156982421875″, 179°17′48.02996999998640603735111653804779052734375″) = 19960000 ± 0.008000000000000000166533453693773481063544750213623046875
(1°0′0″, 0°0′0″) to (1°1′15.1895199999996322048900765366852283477783203125″, 179°46′17.84244000004036934114992618560791015625″) = 19780006.5579999983310699462890625 ± 0.008000000000000000166533453693773481063544750213623046875

Releases

No releases published

Packages

No packages published

Languages