The implementation has been compared to the formulae of the
sections
and
evaluated in
quadruple precision, for reference declinations
,
,
,
, and
degrees, projection angles
and
degrees, and 20000 random positions per case. The
celestial to projection plane coordinates are accurate to about
in relative value, the projection plane to celestial
coordinates to about
arcsec, and the round trips to better
than
arcsec up to
.
The demonstration procedure gag_demo:demo-convert.greg
exercises the command G
CONVERT in both directions,
for 7 projection centers (including the Equator, the poles, and a
non-zero projection angle) and 21 positions each (including the
reference point and its close neighborhood, the poles, the antipode,
and longitude wrapping). The projected coordinates are compared to the
formulae of the section
, the round trip positions
to the input ones, and an error is raised if any unexpected result is
found.