Professional Documents
Culture Documents
Topic: Vector Calculus LAB Experiment: All All
Topic: Vector Calculus LAB Experiment: All All
Name: B.Vishnu
a_distance = 3.6056
%b). When coordinate of point C is (9,8,7) and the coordinate of point D is (5,6,7).
clc clear all close all x1=9; x2=5; y1=8; y2=6; z1=7; z2=7;
b_distance=sqrt((x2-x1).^2+(y2-y1).^2+(z2-z1).^2)
b_distance = 4.4721
ans = 0.4312
ans = 0
Unit = 1×2
6.6000 9.2000
1
3.0000 8.0000 4.5000
Unit2 = K/norm(K)
Unit2 = 1×3
0.3107 0.8284 0.4660
%4. Find the center and radius of the given sphere x.^2+y.^2+z.^2− 6 + 8 = 0
%a).
L+5M clc
clear
all
L = [2 7 -9]
L = 1×3
2 7 -9
M = [12 27 -29]
M = 1×3
12 27 -29
Z = L+5*M
Z = 1×3
62 142 -154
%b) L x 5M
clc
clear all L
= [2 7 -9]
L = 1×3
2 7 -9
M = [12 27 -29]
M = 1×3
12 27 -29
Y = L.*(5*M)
Y = 1×3
120 945 1305
%c) M/L
clc
clear
all
L = [2 7 -9]
L = 1×3
2
2 7 -9
M = [12 27 -29]
M = 1×3
12 27 -29
X = M/L
X = 3.5373
%d) M-L
clc
clear
all
L = [2 7 -9]
L = 1×3
2 7 -9
M = [12 27 -29]
M = 1×3
12 27 -29
w = M-L
w = 1×3 10
20 -20
%6. Find the following for the given vector = 2 + 5 + 7 %a) Speed.
%b) Direction of the motion