Clarify the description, include an example, and See also: deg2rad().

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@84361 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-06-02 01:17:15 +00:00
parent 0fbac3c061
commit ffe924ac93

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.sin">
<refnamediv>
@ -13,10 +13,27 @@
<methodparam><type>float</type><parameter>arg</parameter></methodparam>
</methodsynopsis>
<para>
Returns the sine of arg in radians.
<function>sin</function> returns the sine of the <parameter>arg</parameter>
parameter. The <parameter>arg</parameter> parameter is in radians.
</para>
<para>
See also <function>cos</function> and <function>tan</function>.
<informalexample>
<programlisting>
<![CDATA[
<?php
// Precision depends on your precision directive
print sin(deg2rad(60)); // 0.866025403 ...
print sin(60); // -0.304810621 ...
?>
]]>
</programlisting>
</informalexample>
</para>
<para>
See also <function>cos</function>, <function>tan</function>
and <function>deg2rad</function>.
</para>
</refsect1>
</refentry>