diff options
authorRelease Manager <>2017-01-26 00:56:24 +0100
committerVolker Braun <>2017-01-28 13:40:10 +0100
commit360b42c55cf1f6c44853630c50882aca46f79d91 (patch)
parentTrac #22205: add more links to PARI documentation (diff)
parent22207: fix formatting and grammar errors, and add example (diff)
Trac #22207: Fix
URL: Reported by: falque Ticket author(s): Justine Falque Reviewer(s): Samuel Lelièvre
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sage/modules/ b/src/sage/modules/
index 5239118..2474f34 100644
--- a/src/sage/modules/
+++ b/src/sage/modules/
@@ -9,7 +9,7 @@ and vector spaces and their elements.
Sage currently provides two implementations of free modules:
:class:`FreeModule` and :class:`CombinatorialFreeModule`. The
distinction between the two is mostly an accident in history. The
-later allows for the basis to be indexed by any kind of objects,
+latter allows for the basis to be indexed by any kind of objects,
instead of just `0,1,2,...`. They also differ by feature set and
efficiency. Eventually, both implementations will be merged under the
name :class:`FreeModule`. In the mean time, we focus here on
@@ -197,7 +197,7 @@ The ``map`` methods are useful to transform elements::
sage: f.map_item(lambda i,c: (i+1,c-3))
-a[1] - a[2]
-Note: the later function should be called ``map_items``!
+Note: this last function should be called ``map_items``!
Manipulating free modules
@@ -207,6 +207,8 @@ methods for constructing elements::
+ sage: F.term(1)
+ a[1]
sage: F.sum_of_monomials(i for i in Zmod(5) if i > 2)
a[3] + a[4]
sage: F.sum_of_terms((i+1,i) for i in Zmod(5) if i > 2)
@@ -216,7 +218,7 @@ methods for constructing elements::
Is safer to use ``F.sum()`` than to use ``sum()``: in case the input
is an empty iterable, it makes sure the zero of `A` is returned, and
-not a plain `0`:
+not a plain `0`::
sage: F.sum([]), parent(F.sum([]))
(0, Free module generated by Ring of integers modulo 5 over Integer Ring)