Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
more debug
tweak?
Line 535:
-- math in Annex B.2, of Ordnance Survey document
 
local aq = a2 * a2
local e2 = ( aq - b2 * b2 ) / aq
 
Line 546:
local n0 = 11
 
local phi_alt
repeat
local phi_alt = phi
ny = a2 / sqrt ( 1. - e2 * sin(phi) * sin(phi) )
phi = atan ( z2 + e2 * ny * sin(phi) , p2 )