Math::Trig
Defines many trigonometric functions not defined by the
core Perl, plus the constant pi and
some additional functions for converting angles. For example:
use Math::Trig;
$x = tan(0.9);
$halfpi = pi/2;The following functions are defined. A slash (/) between two functions means the values
are aliases.
acsc/acosec,asec,acot/acotanArcus cofunctions of sine, cosine, and tangent
acsch/acosech,asech,acoth/acotanhArcus cofunctions of hyperbolic sine, cosine, and tangent
asin,acos,atanArcus (inverse) functions of sine, cosine, and tangent
asinh,acosh,atanhArcus functions of hyperbolic sine, cosine, and tangent
atan2(y,x)Principal value of arc tangent of
y/xcsc/cosec,sec,cot/cotanCofunctions of sine, cosine, and tangent
csch/cosech,sech,coth/cotanhCofunctions of hyperbolic sine, cosine, and tangent
deg2radDegrees to radians
deg2gradDegrees to gradians
grad2degGradians to degrees
grad2radGradians to radians
piThe trigonometric constant π
rad2degRadians to degrees
rad2gradRadians to gradians
sinh,cosh,tanhHyperbolic sine, cosine, and tangent
tanTangent