diff options
| author | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2020-12-13 17:08:40 -0800 |
|---|---|---|
| committer | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2020-12-18 20:49:36 -0800 |
| commit | 09cbb7495b92a37ddfb5e7d1bc2e9964bc6a0609 (patch) | |
| tree | 232e4a89b612a17fb9b373260dc5adb9306fb8de /numpy/polynomial | |
| parent | bac54ecb0b815eea2e8116d21aa96e1387793468 (diff) | |
| download | numpy-09cbb7495b92a37ddfb5e7d1bc2e9964bc6a0609.tar.gz | |
DOC: Fix a couple of reference to verbatim and vice versa
This update a coupe of references (single backticks) that actually are not to
verbatim/code (double backticks); and a couple of verbatim to reference
when they do actually exists and can be resolved in context.
I probably missed other; and stayed simple but spoted a few other
inconsistencies that I did not fix:
- some ``...`` could actually be :math:`...` but not always clear if
it would be better.
- some intervals are [``...``], other are ``[...]``
I guess they could be discussed individually; it was mostly the failing
references that bothered me.
Diffstat (limited to 'numpy/polynomial')
| -rw-r--r-- | numpy/polynomial/polynomial.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py index 1baa7d870..44784023b 100644 --- a/numpy/polynomial/polynomial.py +++ b/numpy/polynomial/polynomial.py @@ -156,7 +156,7 @@ def polyfromroots(roots): .. math:: p(x) = (x - r_0) * (x - r_1) * ... * (x - r_n), - where the `r_n` are the roots specified in `roots`. If a zero has + where the ``r_n`` are the roots specified in `roots`. If a zero has multiplicity n, then it must appear in `roots` n times. For instance, if 2 is a root of multiplicity three and 3 is a root of multiplicity 2, then `roots` looks something like [2, 2, 2, 3, 3]. The roots can appear @@ -192,11 +192,11 @@ def polyfromroots(roots): Notes ----- The coefficients are determined by multiplying together linear factors - of the form `(x - r_i)`, i.e. + of the form ``(x - r_i)``, i.e. .. math:: p(x) = (x - r_0) (x - r_1) ... (x - r_n) - where ``n == len(roots) - 1``; note that this implies that `1` is always + where ``n == len(roots) - 1``; note that this implies that ``1`` is always returned for :math:`a_n`. Examples |
