Skip to content

Commit

Permalink
Trac #15795: fix VectorSpace.complement doc
Browse files Browse the repository at this point in the history
There is a `::` missing.

URL: http://trac.sagemath.org/15795
Reported by: malb
Ticket author(s): Martin Albrecht
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager authored and vbraun committed Mar 5, 2014
2 parents c9f838f + 7f9b49c commit 20469a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sage/modules/free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,9 @@ def span(self, gens, base_ring=None, check=True, already_echelonized=False):
[x/(x^3 - 6*x^2 + 11*x - 6) 2/15*x^2 - 17/75*x - 1/75]
[ 0 x^3 - 11/5*x^2 - 3*x + 4/5]
Note that the ``base_ring`` can make a huge difference. We repeat the previous example over the fraction field of R and get a simpler vector space.::
Note that the ``base_ring`` can make a huge difference. We
repeat the previous example over the fraction field of R and
get a simpler vector space. ::
sage: L2.span([[(x^2+x)/(x^2-3*x+2),1/5],[(x^2+2*x)/(x^2-4*x+3),x]],base_ring=R.fraction_field())
Vector space of degree 2 and dimension 2 over Fraction Field of Univariate Polynomial Ring in x over Rational Field
Expand Down Expand Up @@ -3657,7 +3659,7 @@ def complement(self):
All these complements are only done with respect to the inner
product in the usual basis. Over finite fields, this means
we can get complements which are only isomorphic to a vector
space decomposition complement.
space decomposition complement. ::
sage: F2 = GF(2,x)
sage: V = F2^6
Expand Down

0 comments on commit 20469a4

Please sign in to comment.