]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Get rid of math mode in some places.
authorGuido van Rossum <guido@python.org>
Tue, 25 Nov 1997 01:00:40 +0000 (01:00 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 25 Nov 1997 01:00:40 +0000 (01:00 +0000)
12 files changed:
Doc/lib/libmath.tex
Doc/lib/libpprint.tex
Doc/lib/libsys.tex
Doc/lib/libtime.tex
Doc/libmacspeech.tex
Doc/libmactcp.tex
Doc/libmath.tex
Doc/libpprint.tex
Doc/libsys.tex
Doc/libtime.tex
Doc/mac/libmacspeech.tex
Doc/mac/libmactcp.tex

index e41edda7094fb1fea45931e478789216777466b3..8f7eeba99134ec09c9144943cf1ffda446e4f512 100644 (file)
@@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}.
 \end{funcdesc}
 
 \begin{funcdesc}{exp}{x}
-Return the exponential value $\mbox{e}^x$.
+Return \code{e**\var{x}}.
 \end{funcdesc}
 
 \begin{funcdesc}{fabs}{x}
@@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}.
 \end{funcdesc}
 
 \begin{funcdesc}{ldexp}{x, i}
-Return $x {\times} 2^i$.
+Return \code{\var{x} * (2**\var{i})}.
 \end{funcdesc}
 
 \begin{funcdesc}{modf}{x}
@@ -71,7 +71,7 @@ carry the sign of \var{x}.
 \end{funcdesc}
 
 \begin{funcdesc}{pow}{x, y}
-Return $x^y$.
+Return \code{\var{x}**\var{y}}.
 \end{funcdesc}
 
 \begin{funcdesc}{sin}{x}
index aabc8c760db815811dd6498fa4c23f68b465b7d9..d003d2b2a37cc88dfe3213e3f5ce6d8f44bcb582 100644 (file)
@@ -122,7 +122,7 @@ One more support function is also defined:
 Return a string representation of \var{object}, protected against
 recursive data structures.  If the representation of \var{object}
 exposes a recursive entry, the recursive reference will be represented
-as \samp{$<$Recursion on \var{typename} with id=\var{number}$>$}.  The
+as \code{<Recursion on \var{typename} with id=\var{number}>}.  The
 representation is not otherwise formatted.
 
 \begin{verbatim}
index 555803e0c4c5b350247c00a3afa29e19470f1b3d..1e256af75d3130c799d993b53032577a94d90d94 100644 (file)
@@ -176,7 +176,7 @@ determines how often the interpreter checks for periodic things such
 as thread switches and signal handlers.  The default is 10, meaning
 the check is performed every 10 Python virtual instructions.  Setting
 it to a larger value may increase performance for programs using
-threads.  Setting it to a value $\leq 0$ checks every virtual instruction,
+threads.  Setting it to a value \code{<=} 0 checks every virtual instruction,
 maximizing responsiveness as well as overhead.
 \end{funcdesc}
 
index e3525057eeb44420b57bbf17fef1f5079970ec16..74e81046e18395fb7ce050c234ed3f896859248c 100644 (file)
@@ -48,8 +48,8 @@ integers: year (e.g.\ 1993), month (1--12), day (1--31), hour
 (0--23), minute (0--59), second (0--59), weekday (0--6, monday is 0),
 Julian day (1--366) and daylight savings flag (-1, 0  or 1).
 Note that unlike the C structure, the month value is a range of 1-12, not
-0-11.  A year value of $<$ 100 will typically be silently converted to
-1900 $+$ year value.  A -1 argument as daylight savings flag, passed to
+0-11.  A year value less than 100 will typically be silently converted to
+1900 plus the year value.  A -1 argument as daylight savings flag, passed to
 \code{mktime()} will usually result in the correct daylight savings
 state to be filled in.
 
index d3b6e960a25b5a37d849be18b7c7f0812ba863f4..92c0541827c1ff14c5b820b5a6e761c39e12bbd5 100644 (file)
@@ -45,7 +45,7 @@ yet possible to access the parameters of a voice.
 \renewcommand{\indexsubitem}{(voice object method)}
 
 \begin{funcdesc}{GetGender}{}
-Return the gender of the voice:\ 0 for male, 1 for female and $-1$ for neuter.
+Return the gender of the voice: 0 for male, 1 for female and -1 for neuter.
 \end{funcdesc}
 
 \begin{funcdesc}{NewChannel}{}
index 4d6d5ba85539673e8ba08f23bdddcbb3361f3c04..a16afc8cb5e576724a85ceea6332108c2a5e0236 100644 (file)
@@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream.
 \renewcommand{\indexsubitem}{(UDP stream method)}
 
 \begin{funcdesc}{Read}{timeout}
-Read a datagram, waiting at most \var{timeout} seconds ($-1$ is
+Read a datagram, waiting at most \var{timeout} seconds (-1 is
 infinite).  Return the data.
 \end{funcdesc}
 
index e41edda7094fb1fea45931e478789216777466b3..8f7eeba99134ec09c9144943cf1ffda446e4f512 100644 (file)
@@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}.
 \end{funcdesc}
 
 \begin{funcdesc}{exp}{x}
-Return the exponential value $\mbox{e}^x$.
+Return \code{e**\var{x}}.
 \end{funcdesc}
 
 \begin{funcdesc}{fabs}{x}
@@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}.
 \end{funcdesc}
 
 \begin{funcdesc}{ldexp}{x, i}
-Return $x {\times} 2^i$.
+Return \code{\var{x} * (2**\var{i})}.
 \end{funcdesc}
 
 \begin{funcdesc}{modf}{x}
@@ -71,7 +71,7 @@ carry the sign of \var{x}.
 \end{funcdesc}
 
 \begin{funcdesc}{pow}{x, y}
-Return $x^y$.
+Return \code{\var{x}**\var{y}}.
 \end{funcdesc}
 
 \begin{funcdesc}{sin}{x}
index aabc8c760db815811dd6498fa4c23f68b465b7d9..d003d2b2a37cc88dfe3213e3f5ce6d8f44bcb582 100644 (file)
@@ -122,7 +122,7 @@ One more support function is also defined:
 Return a string representation of \var{object}, protected against
 recursive data structures.  If the representation of \var{object}
 exposes a recursive entry, the recursive reference will be represented
-as \samp{$<$Recursion on \var{typename} with id=\var{number}$>$}.  The
+as \code{<Recursion on \var{typename} with id=\var{number}>}.  The
 representation is not otherwise formatted.
 
 \begin{verbatim}
index 555803e0c4c5b350247c00a3afa29e19470f1b3d..1e256af75d3130c799d993b53032577a94d90d94 100644 (file)
@@ -176,7 +176,7 @@ determines how often the interpreter checks for periodic things such
 as thread switches and signal handlers.  The default is 10, meaning
 the check is performed every 10 Python virtual instructions.  Setting
 it to a larger value may increase performance for programs using
-threads.  Setting it to a value $\leq 0$ checks every virtual instruction,
+threads.  Setting it to a value \code{<=} 0 checks every virtual instruction,
 maximizing responsiveness as well as overhead.
 \end{funcdesc}
 
index e3525057eeb44420b57bbf17fef1f5079970ec16..74e81046e18395fb7ce050c234ed3f896859248c 100644 (file)
@@ -48,8 +48,8 @@ integers: year (e.g.\ 1993), month (1--12), day (1--31), hour
 (0--23), minute (0--59), second (0--59), weekday (0--6, monday is 0),
 Julian day (1--366) and daylight savings flag (-1, 0  or 1).
 Note that unlike the C structure, the month value is a range of 1-12, not
-0-11.  A year value of $<$ 100 will typically be silently converted to
-1900 $+$ year value.  A -1 argument as daylight savings flag, passed to
+0-11.  A year value less than 100 will typically be silently converted to
+1900 plus the year value.  A -1 argument as daylight savings flag, passed to
 \code{mktime()} will usually result in the correct daylight savings
 state to be filled in.
 
index d3b6e960a25b5a37d849be18b7c7f0812ba863f4..92c0541827c1ff14c5b820b5a6e761c39e12bbd5 100644 (file)
@@ -45,7 +45,7 @@ yet possible to access the parameters of a voice.
 \renewcommand{\indexsubitem}{(voice object method)}
 
 \begin{funcdesc}{GetGender}{}
-Return the gender of the voice:\ 0 for male, 1 for female and $-1$ for neuter.
+Return the gender of the voice: 0 for male, 1 for female and -1 for neuter.
 \end{funcdesc}
 
 \begin{funcdesc}{NewChannel}{}
index 4d6d5ba85539673e8ba08f23bdddcbb3361f3c04..a16afc8cb5e576724a85ceea6332108c2a5e0236 100644 (file)
@@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream.
 \renewcommand{\indexsubitem}{(UDP stream method)}
 
 \begin{funcdesc}{Read}{timeout}
-Read a datagram, waiting at most \var{timeout} seconds ($-1$ is
+Read a datagram, waiting at most \var{timeout} seconds (-1 is
 infinite).  Return the data.
 \end{funcdesc}