]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added degrees() and radians() to mathmodule. Closing patch 552452 and
authorRaymond Hettinger <python@rcn.com>
Mon, 13 May 2002 03:52:47 +0000 (03:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 13 May 2002 03:52:47 +0000 (03:52 +0000)
feature request 426539.

Doc/lib/libmath.tex

index 0f286d426d7fc359070ab14d10130453eb7b2ad7..f013e23a114ec5c9974ba3717e64940a1ac6ab2c 100644 (file)
@@ -47,6 +47,10 @@ Return the cosine of \var{x}.
 Return the hyperbolic cosine of \var{x}.
 \end{funcdesc}
 
+\begin{funcdesc}{degrees}{x}
+Converts angle \var{x} from radians to degrees.
+\end{funcdesc}
+
 \begin{funcdesc}{exp}{x}
 Return \code{e**\var{x}}.
 \end{funcdesc}
@@ -99,6 +103,10 @@ carry the sign of \var{x}.  The integer part is returned as a float.
 Return \code{\var{x}**\var{y}}.
 \end{funcdesc}
 
+\begin{funcdesc}{radians}{x}
+Converts angle \var{x} from degrees to radians.
+\end{funcdesc}
+
 \begin{funcdesc}{sin}{x}
 Return the sine of \var{x}.
 \end{funcdesc}