Find the work done for the force ๐นโ(x,y,z)= yz๐โ + xz ๐โ + (xy+2z) ๐โโ along the line segment from (1,0,-2) to (4,6,3)
์กฐํ ์: 78 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
Chaitanya Yadav
2022๋
1์ 14์ผ
Find the work done for the force ๐นโ(x,y,z)= yz๐โ + xz ๐โ + (xy+2z) ๐โโ along the line segment from (1,0,-2) to (4,6,3)
๋๊ธ ์: 5
์ฑํ๋ ๋ต๋ณ
์ถ๊ฐ ๋ต๋ณ (1๊ฐ)
Surya
2023๋
11์ 21์ผ
clc
clear all
syms x y z t
f=input('Enter the components of 3D vector function [u,v,w] ');
r=input('Enter x,y,z in parametric form');
I=input('Enter the limits of integration for t in the form [a,b]');
a=I(1);b=I(2);
dr=diff(r,t);
F=subs(f,{x,y,z},r);
Fdr=sum(F.*dr);
I=int(Fdr,t,a,b)
P(x,y,z)=f(1);Q(x,y,z)=f(2); R(x,y,z)=f(3);
x1=linspace(0,1,10); y1=x1; z1=x1;
[X,Y,Z] = meshgrid(x1,y1,z1);
U=P(X,Y,Z); V=Q(X,Y,Z); W=R(X,Y,Z);
quiver3(X,Y,Z,U,V,W,1.5)
hold on
t1=linspace(0,1,10);
x=subs(r(1),t1);y=subs(r(2),t1);z=subs(r(3),t1);
plot3(x,y,z,'r')
๋๊ธ ์: 2
Raghav
2023๋
11์ 27์ผ
์ด๋: DGM
2023๋
11์ 28์ผ
clear
clc
syms x y z t
f=[y*z,x*z,x*y+2*z];
r=[3*t+1,6*t,5*t-2];
I=[0,1];
a=I(1);b=I(2);
dr=diff(r,t);
F=subs(f,{x,y,z},r);
Fdr=sum(F.*dr);
I=int(Fdr,t,a,b)
P(x,y,z)=f(1);Q(x,y,z)=f(2); R(x,y,z)=f(3);
x1=linspace(0,1,10); y1=x1; z1=x1;
[X,Y,Z]=meshgrid(x1,y1,z1);
U=P(X,Y,Z); V=Q(X,Y,Z); W=R(X,Y,Z);
quiver3(X,Y,Z,U,V,W,1.5)
hold on
t1=linspace(0,1,10);
x=subs(r(1),t1);y=subs(r(2),t1);z=subs(r(3),t1);
plot3(x1,y1,z1,'r')
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Get Started with MATLAB์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
์ ํ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!