Skip to content

Commit 8056c90

Browse files
author
smeyer
committed
sync docs
git-svn-id: https://svn.r-project.org/R/trunk@88440 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent c53c162 commit 8056c90

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

doc/manual/R-exts.texi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8154,20 +8154,21 @@ The following example is from @file{Poisson.Rd}:
81548154

81558155
@example
81568156
@group
8157-
\deqn@{p(x) = \frac@{\lambda^x e^@{-\lambda@}@}@{x!@}@}@{%
8157+
\deqn@{p(x) = \frac@{\lambda^x e^@{-\lambda@}@}@{x!@}@}@{
81588158
p(x) = \lambda^x exp(-\lambda)/x!@}
8159-
for \eqn@{x = 0, 1, 2, \ldots@}.
8159+
for \eqn@{x = 0, 1, 2, \ldots@} .
81608160
@end group
81618161
@end example
81628162

81638163
@iftex
81648164
For the @LaTeX{} manual and in enhanced @HTML{} help, this becomes
81658165
@c: this is TeXinfo markup, not the result of the conversions.
8166+
@c FIXME: switch to @displaymath when we require Texinfo 6.8 or later
81668167
@quotation
81678168
@cartouche
81688169
@tex
81698170
$$ p(x) = {\lambda^x e^{-\lambda} \over x!} $$
8170-
for $x = 0, 1, 2, \ldots$.
8171+
for $x = 0, 1, 2, \ldots$ .
81718172
@end tex
81728173
@end cartouche
81738174
@end quotation
@@ -8180,7 +8181,7 @@ In plain-text help we get
81808181
@example
81818182
p(x) = lambda^x exp(-lambda)/x!
81828183

8183-
for x = 0, 1, 2, ....
8184+
for x = 0, 1, 2, ... .
81848185
@end example
81858186
@end cartouche
81868187
@end quotation

src/library/stats/man/Poisson.Rd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ rpois(n, lambda)
5353
\details{
5454
The Poisson distribution has density
5555
%-- please leave the linebreaking for the next two ! --
56-
\deqn{p(x) = \frac{\lambda^x e^{-\lambda}}{x!}}{p(x) = \lambda^x exp(-\lambda)/x!}
56+
%-- keep in sync with R-exts#Mathematics --
57+
\deqn{p(x) = \frac{\lambda^x e^{-\lambda}}{x!}}{
58+
p(x) = \lambda^x exp(-\lambda)/x!}
5759
for \eqn{x = 0, 1, 2, \ldots} .
5860
The mean and variance are \eqn{E(X) = Var(X) = \lambda}.
5961

0 commit comments

Comments
 (0)