Help language development. Donate to The Perl Foundation
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;
use Math::Trig; # no trigonometric functions exported use Math::Trig :ALL; # includes the trig functions
zef install Math::Trig
Tom Browder ([email protected]) [from 2020-02-14]
Original author: the late Jonathan Scott Duff <@perlpilot>, RIP
Artistic 2.0. See that license here.
Copyright © 2019-2022 by Tom Browder.
Copyright © 2015 by Jonathan Scott Duff.
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."