variable X procuct - [(x,y) for x in list1 for y in list2]
John La Rooy
larooy at xtar.co.nz
Fri May 31 05:59:14 EDT 2002
Perhaps the translation is correct, but the example you give is a cartesian product, not a cross product.
>From my algebra book...
In many applications of vectors to problems in geometry, physics, and engineering it is of interest to construct a vecotr in 3-space that is perpendicular to two given vectors. In this section we introduce a type of vector multiplication the facilitates this construction
DEFINITION: If u=(u1,u2,u3) and v=(v1,v2,v3) are vectors in 3-space, then the cross product
is the vector defined by
u x v = (u2v3 - u3v2 , u3v1 - u1v3 , u1v2 - u2v1)
John
More information about the Python-list
mailing list