]> granicus.if.org Git - python/commitdiff
Fix vonmisesvariate() -- it now returns an angle between 0 and *two*
authorGuido van Rossum <guido@python.org>
Mon, 20 Apr 1998 14:43:44 +0000 (14:43 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Apr 1998 14:43:44 +0000 (14:43 +0000)
times pi.  Got rid of $math$ here and in one other place.

Doc/lib/librandom.tex
Doc/librandom.tex

index fb62f8ff8819b7e78f7453d3ab7214e54076b266..b76822e8ef1ac4feecb8151aee453ca95798f609 100644 (file)
@@ -30,7 +30,7 @@ Returned values will range between 0 and 1.
 Circular uniform distribution.  \var{mean} is the mean angle, and
 \var{arc} is the range of the distribution, centered around the mean
 angle.  Both values must be expressed in radians, and can range
-between 0 and $\pi$.  Returned values will range between
+between 0 and pi.  Returned values will range between
 \code{\var{mean} - \var{arc}/2} and \code{\var{mean} + \var{arc}/2}.
 \end{funcdesc}
 
@@ -65,11 +65,11 @@ standard deviation.
 \end{funcdesc}
 
 \begin{funcdesc}{vonmisesvariate}{mu, kappa}
-\var{mu} is the mean angle, expressed in radians between 0 and pi,
+\var{mu} is the mean angle, expressed in radians between 0 and 2*pi,
 and \var{kappa} is the concentration parameter, which must be greater
-then or equal to zero.  If \var{kappa} is equal to zero, this
+than or equal to zero.  If \var{kappa} is equal to zero, this
 distribution reduces to a uniform random angle over the range 0 to
-$2\pi$.
+2*pi.
 \end{funcdesc}
 
 \begin{funcdesc}{paretovariate}{alpha}
index fb62f8ff8819b7e78f7453d3ab7214e54076b266..b76822e8ef1ac4feecb8151aee453ca95798f609 100644 (file)
@@ -30,7 +30,7 @@ Returned values will range between 0 and 1.
 Circular uniform distribution.  \var{mean} is the mean angle, and
 \var{arc} is the range of the distribution, centered around the mean
 angle.  Both values must be expressed in radians, and can range
-between 0 and $\pi$.  Returned values will range between
+between 0 and pi.  Returned values will range between
 \code{\var{mean} - \var{arc}/2} and \code{\var{mean} + \var{arc}/2}.
 \end{funcdesc}
 
@@ -65,11 +65,11 @@ standard deviation.
 \end{funcdesc}
 
 \begin{funcdesc}{vonmisesvariate}{mu, kappa}
-\var{mu} is the mean angle, expressed in radians between 0 and pi,
+\var{mu} is the mean angle, expressed in radians between 0 and 2*pi,
 and \var{kappa} is the concentration parameter, which must be greater
-then or equal to zero.  If \var{kappa} is equal to zero, this
+than or equal to zero.  If \var{kappa} is equal to zero, this
 distribution reduces to a uniform random angle over the range 0 to
-$2\pi$.
+2*pi.
 \end{funcdesc}
 
 \begin{funcdesc}{paretovariate}{alpha}