> From: Zach
>
> (The original problem was to find tuples of reals (n1, n2, m1, m2)
> such that n1*a1 + n2*a2 = m1*b1 + m2*b2 (where a1, a2, b1, and b2 are
2D vectors).)
Firstly, the solution is not unique. If (n1, n2, m1, m2) is a solution
then
so is (k*n1, k*n2, k*m1, k*m2).
Now write this as a matrix equation, where a1 = (a1x, a1y) and so on
[ a1x a2x -b1x -b2x ] [ n1 ] [ 0 ]
[ a1y a2y -b1y -b2y ] [ n2 ] = [ 0 ]
[ m1 ]
[ m2 ]
and solve as an underdetermined linear system. The nature of the
solution will depend
on the rank of the coefficient matrix.
NOTICE
This e-mail and any attachments are private and confidential and may contain
privileged information. If you are not an authorised recipient, the copying or
distribution of this e-mail and any attachments is prohibited and you must not
read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.
_______________________________________________
Axiom-math mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-math