philip          Sat Jun  1 21:17:15 2002 EDT

  Modified files:              
    /phpdoc/en/reference/math/functions sin.xml 
  Log:
  Clarify the description, include an example, and See also: deg2rad().
  
  
Index: phpdoc/en/reference/math/functions/sin.xml
diff -u phpdoc/en/reference/math/functions/sin.xml:1.2 
phpdoc/en/reference/math/functions/sin.xml:1.3
--- phpdoc/en/reference/math/functions/sin.xml:1.2      Wed Apr 17 02:39:55 2002
+++ phpdoc/en/reference/math/functions/sin.xml  Sat Jun  1 21:17:15 2002
@@ -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>


Reply via email to