Another service from Omega

Computing Cross-products


*****


Problem:


Find the crossproduct between v and w where,

> v := 5*i - j + 2*k;

                              v := 5 i - j + 2 k

and

> w := 2*i + j - k;

                               w := 2 i + j - k


Solution:


Just define i, j and k OR grab the components OR use the formula. Here are several ways to do it with maple.

> crossprod(v,w);

                                  [-1, 9, 7]
> crossprod([5,-1,2],[2,1,-1]);
                                  [-1, 9, 7]
> v :=[5,-1,2]: w := [2,1,-1]:
> [v[2]*w[3]-v[3]*w[2], v[3]*w[1]-v[1]*w[3], v[1]*w[2]-v[2]*w[1]];
                                  [-1, 9, 7]

Link to the commands in this file
Carlos Rodriguez <carlos@math.albany.edu>
Last modified: Thu Sep 14 14:45:57 EDT 2000