{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ma280project

# ma280project - or r = x y z r = x y z P =[0 2 2 Px = 0 Py =...

This preview shows pages 1–5. Sign up to view the full content.

Iniese umah MA 280 MathLab Project 1 1) a = [6, -3, 2]; b = [2, 1, -2]; angle = acos(dot(a,b)/(norm(a)*norm(b))) angle = 1.3304 2) b = [2, -3, 1]; a = [1, 6, -2]; dot(a,b)/ norm(a) ans = -2.8111 3) a = [2, 3, -2]; b = [1, -1, 0]; c = [2, 0, 3]; dot(a,cross(b,c)) ans = -19 abs(-19) ans = 19 4) Px = 0; Py = 2; Pz = 2; Qx = 3; Qy = 0; Qz= 3; Rx = 5; Ry = 5; Rz = 0; P = [0, 2, 2]; Q = [3, 0, 3];

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Iniese umah MA 280 MathLab Project 1 R = [5, 5, 0]; PR = Q - P PR = 3 -2 1 QR = R – Q QR = 2 5 -3 cross(PR, QR) ans = 1 11 19 a = 1; b=11; c = 19; syms x y z real equationofplane = (a*(x - Px)+ b*(y – Py)+ c*(z – Pz)) equationofplane = x + 11*y + 19*z - 60

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: or r =[ x y z] r = [ x, y, z] \ P = [0, 2, 2]; Px = 0; Py = 2; Pz = 2; a = [1 11 19 ] a = 1 11 19 equationofline = dot(a,(r-P)) equationofline = x + 11*y + 19*z - 60 Iniese umah MA 280 MathLab Project 1 5) syms x y z t real x = 3*t+1 x = 3*t + 1 y=5-7*t y = 5 - 7*t z=t+12 z = t + 12 v2=[3 -7 1] v2 = 3 -7 1 v1=[(x-1) y z-2] v1 = [ 3*t, 5 - 7*t, t + 10] dot(v1,v2) ans = 59*t - 25 solve('0=59*t-25') ans = 25/59 t =25/59 t = 0.4237 x = 3*t+1 x = 2.2712 y=5-7*t y = 2.0339 z=t+12 z = 12.4237 Iniese umah MA 280 MathLab Project 1 Iniese umah MA 280 MathLab Project 1...
View Full Document

{[ snackBarMessage ]}

### Page1 / 5

ma280project - or r = x y z r = x y z P =[0 2 2 Px = 0 Py =...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online