[sage-support] Re: How to calculate the affine coordinats of a point

2011-07-18 Thread luisfe
On Jul 18, 3:48 pm, Johhannes wrote: > thnx. > > I see that the problem can be also formulated as marix problem. but > the way i did it is in this case the more natural one for me. > is there any reason why it only works this way and solve does not lead > to any result? For me it looks like:

[sage-support] Re: How to calculate the affine coordinats of a point

2011-07-18 Thread Johhannes
thnx. I see that the problem can be also formulated as marix problem. but the way i did it is in this case the more natural one for me. is there any reason why it only works this way and solve does not lead to any result? greatz Johannes On 18 Jul., 14:45, luisfe wrote: > On Jul 16, 1:33 am, J

[sage-support] Re: How to calculate the affine coordinats of a point

2011-07-18 Thread luisfe
On Jul 16, 1:33 am, Johannes wrote: > a very easy example would be this: > > sage: p1 = vector([-3,1,1]) > sage: p2 = vector([1,-3,1]) > sage: p = vector([0,-2,1]) > > #now i'm looking for some x,y such that > #x * p1 + y * p1 == p > > x,y = var('x,y') > sage: assume(x > 0) > sage: assume(y > 0) >