
![]() | ![]() |
8.147. 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/acotan
Arcus cofunctions of sine, cosine, and tangentacsch/acosech, asech, acoth/acotanh
Arcus cofunctions of hyperbolic sine, cosine, and tangentasin, acos, atan
Arcus (inverse) functions of sine, cosine, and tangentasinh, acosh, atanh
Arcus functions of hyperbolic sine, cosine, and tangentatan2(y, x)
Principal value of arc tangent of
y/xcsc/cosec, sec, cot/cotan
Cofunctions of sine, cosine, and tangentcsch/cosech, sech, coth/cotanh
Cofunctions of hyperbolic sine, cosine, and tangentdeg2rad
Degrees to radiansdeg2grad
Degrees to gradiansgrad2deg
Gradians to degreesgrad2rad
Gradians to radianspi
The trigonometric constant

Radians to degreesrad2grad
Radians to gradianssinh, cosh, tanh
Hyperbolic sine, cosine, and tangenttan
Tangent
![]() | ![]() | ![]() |
8.146. Math::Complex | ![]() | 8.148. MIME::Base64 |

Copyright © 2002 O'Reilly & Associates. All rights reserved.