Rand Stats

Math::Trig

zef:tbrowder

Actions Status

Math::Trig

Provides subroutines for coverting between degrees, radians, and gradians; converting between different coordinate systems (cartesian, spherical, cylindrical); and great circle formulas.

Also provides versions of the common trigonemetric functions that take or return their arguments in degrees:

sind
cosd
tand
asind
acosd
atand
atan2d

There are also some useful constants defined:

pi2 = pi/2;
pi4 = pi/4;
_2pi = pi*2;
_4pi = pi*4;

SYNOPSIS

use Math::Trig;      # no trigonometric functions exported
use Math::Trig :ALL; # includes the trig functions

INSTALLATION

zef install Math::Trig

BUGS

AUTHORS

LICENSE

Artistic 2.0. See that license here.

Copyright © 2019-2022 by Tom Browder.

Copyright © 2015 by Jonathan Scott Duff.

ACKNOWLEDGEMENTS

Jonathan Duff's words: "This module is shamelessly based on the Perl 5 module of the same name. Without the authors and maintainers of that module, this module wouldn't exist in this form."