mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
added missing functions deg2rad, rad2deg
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@22610 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
91594fa9bf
commit
e4f91bc8db
1 changed files with 112 additions and 6 deletions
|
@ -26,14 +26,76 @@
|
|||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>M_PI</entry>
|
||||
<entry>3.14159265358979323846</entry>
|
||||
<entry>The value of ¶ (pi)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_PI</entry>
|
||||
<entry>3.14159265358979323846</entry>
|
||||
<entry>Der Wert π (Pi)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_E</entry>
|
||||
<entry>2.7182818284590452354</entry>
|
||||
<entry>e</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_LOG2E</entry>
|
||||
<entry>1.4426950408889634074</entry>
|
||||
<entry>log_2 e</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_LOG10E</entry>
|
||||
<entry>0.43429448190325182765</entry>
|
||||
<entry>log_10 e</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_LN2</entry>
|
||||
<entry>0.69314718055994530942</entry>
|
||||
<entry>log_e 2</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_LN10</entry>
|
||||
<entry>2.30258509299404568402</entry>
|
||||
<entry>log_e 10</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_PI_2</entry>
|
||||
<entry>1.57079632679489661923</entry>
|
||||
<entry>pi/2</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_PI_4</entry>
|
||||
<entry>0.78539816339744830962</entry>
|
||||
<entry>pi/4</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_1_PI</entry>
|
||||
<entry>0.31830988618379067154</entry>
|
||||
<entry>1/pi</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_2_PI</entry>
|
||||
<entry>0.63661977236758134308</entry>
|
||||
<entry>2/pi</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_2_SQRTPI</entry>
|
||||
<entry>1.12837916709551257390</entry>
|
||||
<entry>2/sqrt(pi)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_SQRT2</entry>
|
||||
<entry>1.41421356237309504880</entry>
|
||||
<entry>sqrt(2)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>M_SQRT1_2</entry>
|
||||
<entry>0.70710678118654752440</entry>
|
||||
<entry>1/sqrt(2)</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
Only M_PI is available in PHP versions up to and including PHP4RC1.
|
||||
All other constants are available starting with PHP4.0.
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
@ -115,7 +177,7 @@
|
|||
Returns the arc tangent of arg in radians.</para>
|
||||
|
||||
<para>
|
||||
See also <function>acos</function> and <function>atan</function>.</para>
|
||||
See also <function>asin</function> and <function>acos</function>.</para>
|
||||
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -322,6 +384,28 @@ $binary = base_convert($hexadecimal, 16, 2);
|
|||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.deg2rad">
|
||||
<refnamediv>
|
||||
<refname>deg2rad</refname>
|
||||
<refpurpose>Converts the number in degrees to the radian equivalent</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>double <function>deg2rad</function></funcdef>
|
||||
<paramdef>double <parameter>number</parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
This function converts <parameter>number</parameter> from degrees to
|
||||
the radian equivalent.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>rad2deg</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.exp">
|
||||
<refnamediv>
|
||||
<refname>Exp</refname>
|
||||
|
@ -745,6 +829,28 @@ $randval = mt_rand();
|
|||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.rad2deg">
|
||||
<refnamediv>
|
||||
<refname>rad2deg</refname>
|
||||
<refpurpose>Converts the radian number to the equivalent number in degrees</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>double <function>rad2deg</function></funcdef>
|
||||
<paramdef>double <parameter>number</parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
This function converts <parameter>number</parameter> from
|
||||
radian to degrees.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>deg2rad</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.rand">
|
||||
<refnamediv>
|
||||
<refname>rand</refname>
|
||||
|
|
Loading…
Reference in a new issue