# NAME

trans.ops - Transcendental Opcodes

# DESCRIPTION

Addition library of operations to perform various transcendental operations such as logarithmics and trigonometrics.

To use this library of ops, add this directive to your PIR:

`  .loadlib 'trans_ops'`
acos(out NUM, in NUM)
Set \$1 to the arc cosine (in radians) of \$2.
asec(out NUM, in NUM)
Set \$1 to the arc secant (in radians) of \$2.
asin(out NUM, in NUM)
Set \$1 to the arc sine (in radians) of \$2.
atan(out NUM, in NUM)
atan(out NUM, in NUM, in NUM)
The two-argument versions set \$1 to the arc tangent (in radians) of \$2.The three-argument versions set \$1 to the arc tangent (in radians) of \$2 / \$3, taking account of the signs of the arguments in determining the quadrant of the result.
cos(out NUM, in NUM)
Set \$1 to the cosine of \$2 (given in radians).
cosh(out NUM, in NUM)
Set \$1 to the hyperbolic cosine of \$2 (given in radians).
cot(out NUM, in NUM)
Set \$1 to the cotangent of \$2 (given in radians).
csc(out NUM, in NUM)
Set \$1 to the cosecant of \$2 (given in radians).
exp(out NUM, in NUM)
Set \$1 to e raised to the power \$2. e is the base of the natural logarithm.
ln(out NUM, in NUM)
Set \$1 to the natural (base e) logarithm of \$2.
log10(out NUM, in NUM)
Set \$1 to the base 10 logarithm of \$2.
log2(out NUM, in NUM)
Set \$1 to the base 2 logarithm of \$2.
sec(out NUM, in NUM)
Set \$1 to the secant of \$2 (given in radians).
sech(out NUM, in NUM)
Set \$1 to the hyperbolic secant of \$2 (given in radians).
sin(out NUM, in NUM)
Set \$1 to the sine of \$2 (given in radians).
sinh(out NUM, in NUM)
Set \$1 to the hyperbolic sine of \$2 (given in radians).
tan(out NUM, in NUM)
Set \$1 to the tangent of \$2 (given in radians).
tanh(out NUM, in NUM)
Set \$1 to the hyperbolic tangent of \$2 (given in radians).
pow(out NUM, in NUM, in NUM)
pow(out NUM, in NUM, in INT)
pow(invar PMC, invar PMC, invar PMC)
pow(invar PMC, invar PMC, in INT)
pow(invar PMC, invar PMC, in NUM)
Set \$1 to \$2 raised to the power \$3.

# COPYRIGHT

Copyright (C) 2010-2011, Parrot Foundation.

# LICENSE

This program is free software. It is subject to the same license as the Parrot interpreter itself.