- #1
Jamison Lahman
- 143
- 35
Homework Statement
From Analytical Mechanics by Grant R. Fowles & George L. Cassiday.
Only problem I am having is with part d.
Homework Equations
##A\cdot B = A_xB_x+A_yB_y+A_zB_z##
##sin(\theta) = \frac{|A\times B|}{AB}##
The Attempt at a Solution
I did it by hand but also ran the following Matlab script:
Matlab:
A = [1,1,1];
B = [1,1,0];
theta = acos(dot(A,B)/norm(A)/norm(B))
theta = asin(norm(cross(A,B))/norm(A)/norm(B))