Bug#697570: mention use Math::Trig qw(rad2deg);

jidanni at jidanni.org jidanni at jidanni.org
Sun Jan 6 23:37:28 UTC 2013


Package: perl-doc
Version: 5.14.2-16
Severity: wishlist
File: /usr/share/man/man3/Math::Trig.3perl.gz

Found one needed not only
use Math::Trig qw(deg2rad);
as in the examples, but also
use Math::Trig qw(rad2deg);
which is missing, in order to make the examples really work.

P.S., a cooler way to write the examples would be with shift:
sub NESW   { deg2rad( shift ), deg2rad( 90 - shift ) }
sub unNESW { rad2deg( shift ), 90 - rad2deg( shift ) }

Which I suppose are correct.
In fact they would be better than what is mentioned in my other
messages today...




More information about the Perl-maintainers mailing list