[sage-edu] A problem solving an exercise of vectors

2008-10-08 Thread DJDANG
Hello everyone, I'm sure someone can help me to solve this problem I'm having right now. It's about vectors and it's really easy when you do it on paper but it becomes a little tricky when you try to solve it in sage. This is the problem: Let be u=(1,2), v=(-3,4), w=(w1,4), x=(-2,x2) where w1, x2

[sage-edu] Re: A problem solving an exercise of vectors

2008-10-09 Thread DJDANG
Hello there, I just solve the problem as David Joyner explained. Here is the code: sage: var('w1,x2,x,y') (w1, x2, x, y) sage: U=x+2*y sage: V=(3*x)+(4*y) sage: W=(w1*x)+(4*y) sage: Z=((-2)*x)+(x2*y) sage: solve(2*u==w,w1) [w1 == 2] It´s not all done but is just a matter of putting solve and the