Line Integral over a vector field
이전 댓글 표시
I have a vector b that tells me the magnitude of a vector field pointing outwards over half the unit circle (the values are symmetric so if I want the whole circle I just have to repeat the values of b). How can I compute the line integral over the unit circle?
댓글 수: 1
Roger Stafford
2014년 3월 17일
You need more than the magnitude of a vector field if you are to compute a line integral over it. You also need to know the direction in which it points. That is, you need to know each of the field's components as you move along the integration path. You say that the field is "pointing outwards over half the unit circle". If that means the field direction is orthogonal to the tangential direction of the circle, you would necessarily get a zero value for your line integral. If the direction is not orthogonal, you need to use the dot product of the field vector with the path's tangential direction along the path. You need to clarify this matter before we can effectively give help on this problem.
채택된 답변
추가 답변 (1개)
Kanagala chaitanya
2019년 4월 9일
0 개 추천
t=0:0.01:pi;
x=cos(t);
y=sin(t);
Mag1=linspace(1,2,floor(length(t)/2));
Mag2=linspace(2,1,floor(length(t)/2));
Mag=[Mag1 2 Mag2];
k=Mag+y;
quiver(x,y,x,-k,'>');
hold on;
plot(x,y);
xlabel('x');
ylabel('y');
grid;
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
