didou           Tue Oct 21 07:48:57 2003 EDT

  Modified files:              
    /phpdoc/en/reference/math/functions cos.xml deg2rad.xml rad2deg.xml 
                                        tan.xml 
  Log:
  a bit o' trigo
  
Index: phpdoc/en/reference/math/functions/cos.xml
diff -u phpdoc/en/reference/math/functions/cos.xml:1.3 
phpdoc/en/reference/math/functions/cos.xml:1.4
--- phpdoc/en/reference/math/functions/cos.xml:1.3      Sun Jun  2 07:56:51 2002
+++ phpdoc/en/reference/math/functions/cos.xml  Tue Oct 21 07:48:57 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
   <refentry id="function.cos">
    <refnamediv>
@@ -17,7 +17,21 @@
      parameter.  The <parameter>arg</parameter> parameter is in radians.
     </para>
     <para>
-     See also <function>acos</function>, <function>sin</function>
+     <example>
+      <title><function>cos</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+echo cos(M_PI); // -1
+
+?>
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     See also <function>acos</function>, <function>sin</function>,
      <function>tan</function> and <function>deg2rad</function>.
     </para>
    </refsect1>
Index: phpdoc/en/reference/math/functions/deg2rad.xml
diff -u phpdoc/en/reference/math/functions/deg2rad.xml:1.2 
phpdoc/en/reference/math/functions/deg2rad.xml:1.3
--- phpdoc/en/reference/math/functions/deg2rad.xml:1.2  Wed Apr 17 02:39:51 2002
+++ phpdoc/en/reference/math/functions/deg2rad.xml      Tue Oct 21 07:48:57 2003
@@ -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.deg2rad">
    <refnamediv>
@@ -17,6 +17,21 @@
     <para>
      This function converts <parameter>number</parameter> from degrees
      to the radian equivalent.
+    </para>
+    <para>
+     <example>
+      <title><function>deg2rad</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+echo deg2rad(45); // 0.785398163397
+var_dump(deg2rad(45) === M_PI_4); // bool(true)
+
+?>
+]]>
+      </programlisting>
+     </example>
     </para>
     <para>
      See also <function>rad2deg</function>.
Index: phpdoc/en/reference/math/functions/rad2deg.xml
diff -u phpdoc/en/reference/math/functions/rad2deg.xml:1.2 
phpdoc/en/reference/math/functions/rad2deg.xml:1.3
--- phpdoc/en/reference/math/functions/rad2deg.xml:1.2  Wed Apr 17 02:39:54 2002
+++ phpdoc/en/reference/math/functions/rad2deg.xml      Tue Oct 21 07:48:57 2003
@@ -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.8 -->
   <refentry id="function.rad2deg">
    <refnamediv>
@@ -17,6 +17,20 @@
     <para>
      This function converts <parameter>number</parameter> from radian
      to degrees.
+    </para>
+    <para>
+     <example>
+      <title><function>rad2deg</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+echo rad2deg(M_PI_4); // 45
+
+?>
+]]>
+      </programlisting>
+     </example>
     </para>
     <para>
      See also <function>deg2rad</function>.
Index: phpdoc/en/reference/math/functions/tan.xml
diff -u phpdoc/en/reference/math/functions/tan.xml:1.3 
phpdoc/en/reference/math/functions/tan.xml:1.4
--- phpdoc/en/reference/math/functions/tan.xml:1.3      Sun Jun  2 07:56:51 2002
+++ phpdoc/en/reference/math/functions/tan.xml  Tue Oct 21 07:48:57 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/math.xml, last change in rev 1.57 -->
   <refentry id="function.tan">
    <refnamediv>
@@ -15,6 +15,20 @@
     <para>
      <function>tan</function> returns the tangent of the <parameter>arg</parameter> 
      parameter.  The <parameter>arg</parameter> parameter is in radians.
+    </para>
+    <para>
+     <example>
+      <title><function>tan</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+echo tan(M_PI_2); // 1
+
+?>
+]]>
+      </programlisting>
+     </example>
     </para>
     <para>
      See also <function>atan</function>, <function>sin</function>,

Reply via email to