about vector subspace

20 views
Skip to first unread message

Александр Шевченко

unread,
Mar 26, 2016, 10:13:57 AM3/26/16
to sage-support
Hello.

I have next problem, when I write next strings.

V = VectorSpace(F,n)
S = V.subspace(basis)

but basis!=S.basis()

However, I need to basis has not changed.
Can this be carried out? Could you help me?
Thank you in advance for your help.
Best regards,
Aleksandr.

John H Palmieri

unread,
Mar 26, 2016, 11:53:59 AM3/26/16
to sage-support


On Saturday, March 26, 2016 at 7:13:57 AM UTC-7, Александр Шевченко wrote:
Hello.

I have next problem, when I write next strings.

V = VectorSpace(F,n)
S = V.subspace(basis)

Does "S = V.subspace_with_basis(basis)" do what you want?

--
John

Simon King

unread,
Mar 26, 2016, 11:58:04 AM3/26/16
to sage-s...@googlegroups.com
Hi Alexandr,

On 2016-03-26, Александр Шевченко <shevchenko.a...@gmail.com> wrote:
> I have next problem, when I write next strings.
>
> V = VectorSpace(F,n)S = V.subspace(basis)
>
>
> but basis!=S.basis()
>
> However, I need to basis has not changed.

Do you know "tab completion"? It is rather practical. If you start to
type V.subsp and then hit the tab key, Sage (and Python) will show you
all available methods of V stat start with "subsp". Here, you will
obtain "subspace", "subspaces" and "subspace_with_basis".

And according to the documentation of "subspace_with_basis", it seems to
do what you need.

Best regards,
Simon

Reply all
Reply to author
Forward
0 new messages