Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > d92aa75c2d384ff9f513aed09a46f703 > files > 205

parrot-doc-3.1.0-2.mga1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Parrot  - Transcendental Opcodes</title>
        <link rel="stylesheet" type="text/css"
            href="../../../resources/parrot.css"
            media="all">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <a href="http://www.parrot.org">
                <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot">
                </a>
            </div> <!-- "header" -->
            <div id="divider"></div>
            <div id="mainbody">
                <div id="breadcrumb">
                    <a href="../../../html/index.html">Home</a> &raquo; <a href="../../../html/ops.html">Opcodes</a> &raquo; Transcendental Opcodes
                </div>

<h1><a name="NAME"
>NAME</a></h1>

<p>trans.ops &#45; Transcendental Opcodes</p>

<h1><a name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>Addition library of operations to perform various transcendental operations such as logarithmics and trigonometrics.</p>

<p>To use this library of ops,
add this directive to your PIR:</p>

<pre>  .loadlib &#39;trans_ops&#39;</pre>

<dl>
<dt><a name="acos(out_NUM,_in_NUM)"
><b>acos</b>(out NUM, in NUM)</a></dt>
Set $1 to the arc cosine (in radians) of $2.
<dt><a name="asec(out_NUM,_in_NUM)"
><b>asec</b>(out NUM, in NUM)</a></dt>
Set $1 to the arc secant (in radians) of $2.
<dt><a name="asin(out_NUM,_in_NUM)"
><b>asin</b>(out NUM, in NUM)</a></dt>
Set $1 to the arc sine (in radians) of $2.
<dt><a name="atan(out_NUM,_in_NUM)"
><b>atan</b>(out NUM, in NUM)</a></dt>

<dt><a name="atan(out_NUM,_in_NUM,_in_NUM)"
><b>atan</b>(out NUM, in NUM, in NUM)</a></dt>
The two&#45;argument versions set $1 to the arc tangent (in radians) of $2.The three&#45;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.
<dt><a name="cos(out_NUM,_in_NUM)"
><b>cos</b>(out NUM, in NUM)</a></dt>
Set $1 to the cosine of $2 (given in radians).
<dt><a name="cosh(out_NUM,_in_NUM)"
><b>cosh</b>(out NUM, in NUM)</a></dt>
Set $1 to the hyperbolic cosine of $2 (given in radians).
<dt><a name="cot(out_NUM,_in_NUM)"
><b>cot</b>(out NUM, in NUM)</a></dt>
Set $1 to the cotangent of $2 (given in radians).
<dt><a name="csc(out_NUM,_in_NUM)"
><b>csc</b>(out NUM, in NUM)</a></dt>
Set $1 to the cosecant of $2 (given in radians).
<dt><a name="exp(out_NUM,_in_NUM)"
><b>exp</b>(out NUM, in NUM)</a></dt>
Set $1 to <i>e</i> raised to the power $2. <i>e</i> is the base of the natural logarithm.
<dt><a name="ln(out_NUM,_in_NUM)"
><b>ln</b>(out NUM, in NUM)</a></dt>
Set $1 to the natural (base <i>e</i>) logarithm of $2.
<dt><a name="log10(out_NUM,_in_NUM)"
><b>log10</b>(out NUM, in NUM)</a></dt>
Set $1 to the base 10 logarithm of $2.
<dt><a name="log2(out_NUM,_in_NUM)"
><b>log2</b>(out NUM, in NUM)</a></dt>
Set $1 to the base 2 logarithm of $2.
<dt><a name="sec(out_NUM,_in_NUM)"
><b>sec</b>(out NUM, in NUM)</a></dt>
Set $1 to the secant of $2 (given in radians).
<dt><a name="sech(out_NUM,_in_NUM)"
><b>sech</b>(out NUM, in NUM)</a></dt>
Set $1 to the hyperbolic secant of $2 (given in radians).
<dt><a name="sin(out_NUM,_in_NUM)"
><b>sin</b>(out NUM, in NUM)</a></dt>
Set $1 to the sine of $2 (given in radians).
<dt><a name="sinh(out_NUM,_in_NUM)"
><b>sinh</b>(out NUM, in NUM)</a></dt>
Set $1 to the hyperbolic sine of $2 (given in radians).
<dt><a name="tan(out_NUM,_in_NUM)"
><b>tan</b>(out NUM, in NUM)</a></dt>
Set $1 to the tangent of $2 (given in radians).
<dt><a name="tanh(out_NUM,_in_NUM)"
><b>tanh</b>(out NUM, in NUM)</a></dt>
Set $1 to the hyperbolic tangent of $2 (given in radians).
<dt><a name="pow(out_NUM,_in_NUM,_in_NUM)"
><b>pow</b>(out NUM, in NUM, in NUM)</a></dt>

<dt><a name="pow(out_NUM,_in_NUM,_in_INT)"
><b>pow</b>(out NUM, in NUM, in INT)</a></dt>

<dt><a name="pow(invar_PMC,_invar_PMC,_invar_PMC)"
><b>pow</b>(invar PMC, invar PMC, invar PMC)</a></dt>

<dt><a name="pow(invar_PMC,_invar_PMC,_in_INT)"
><b>pow</b>(invar PMC, invar PMC, in INT)</a></dt>

<dt><a name="pow(invar_PMC,_invar_PMC,_in_NUM)"
><b>pow</b>(invar PMC, invar PMC, in NUM)</a></dt>
Set $1 to $2 raised to the power $3.</dl>

<h1><a name="COPYRIGHT"
>COPYRIGHT</a></h1>

<p>Copyright (C) 2010&#45;2010, Parrot Foundation.</p>

<h1><a name="LICENSE"
>LICENSE</a></h1>

<p>This program is free software. It is subject to the same license as the Parrot interpreter itself.</p>
            </div> <!-- "mainbody" -->
            <div id="divider"></div>
            <div id="footer">
	        Copyright &copy; 2002-2011, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>