Ask Your Question
1

Changing basis on a vector space

asked 11 years ago

Dox gravatar image

updated 11 years ago

Dear community:

I'd like to know if it is possible use a basis other than the canonical. For example

sage: V = VectorSpace(SR,3)

sage: V.basis()

[ (1, 0, 0),

(0, 1, 0),

(0, 0, 1) ]

is the canonical basis of V, but I want to use say

[ (1, 1, 0),

(1, -1, 0),

(0, 0, 1)]

How could I do that?

Edit

More specifically, I'd like to define two different basis on a vector space. Say, a set of coordinate basis and a non-coordinate basis defined over the same vector space... and finally I'd like to express results in either of them.

I'm interested on a change of basis on Differential Forms, but I guess that if you can help me to understand the general problem I can manage the particular one! Chrees

Preview: (hide)

Comments

The free module construction in Sage uses the standard basis. But depending on what you want to do, there might be workarounds. Can you provide some more details about what you're trying to accomplish?

John Palmieri gravatar imageJohn Palmieri ( 11 years ago )

1 Answer

Sort by » oldest newest most voted
3

answered 11 years ago

ndomes gravatar image

Does creating a 'subspace' fit your needs?

V = VectorSpace(SR,3)
W = V.subspace_with_basis([(1,1,0),(1,-1,0),(0,0,1)])
W.basis()
Preview: (hide)
link

Comments

@ndomes Thank you for the answer, I learn some from it. I'd like to know if it's possible to switch calculations from one basis to another, say calculate the derivative respect to `x`, `y` and `z`, but express the result in the basis `u`, `w` and `z` of the "subspace" `W`. Cheers

Dox gravatar imageDox ( 11 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 2,924 times

Last updated: Jul 07 '13