Commit c045b496 authored by Raymond Hettinger's avatar Raymond Hettinger

Added degrees() and radians() to mathmodule. Closing patch 552452 and

feature request 426539.
parent 7906634f
...@@ -47,6 +47,10 @@ Return the cosine of \var{x}. ...@@ -47,6 +47,10 @@ Return the cosine of \var{x}.
Return the hyperbolic cosine of \var{x}. Return the hyperbolic cosine of \var{x}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{degrees}{x}
Converts angle \var{x} from radians to degrees.
\end{funcdesc}
\begin{funcdesc}{exp}{x} \begin{funcdesc}{exp}{x}
Return \code{e**\var{x}}. Return \code{e**\var{x}}.
\end{funcdesc} \end{funcdesc}
...@@ -99,6 +103,10 @@ carry the sign of \var{x}. The integer part is returned as a float. ...@@ -99,6 +103,10 @@ carry the sign of \var{x}. The integer part is returned as a float.
Return \code{\var{x}**\var{y}}. Return \code{\var{x}**\var{y}}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{radians}{x}
Converts angle \var{x} from degrees to radians.
\end{funcdesc}
\begin{funcdesc}{sin}{x} \begin{funcdesc}{sin}{x}
Return the sine of \var{x}. Return the sine of \var{x}.
\end{funcdesc} \end{funcdesc}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment