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
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.

댓글을 달려면 로그인하십시오.

 채택된 답변

Youssef  Khmou
Youssef Khmou 2014년 3월 17일

0 개 추천

hi, i think this is similar to the wave vector k, like Roger expressed implicitly, the vector is orthogonal to the wave front which is circle in your case, here is a simple view point :
the variable in this example, k, try to use trapz to integrate, but whats the intuitive result? should the integral equals zero?
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;

추가 답변 (1개)

Kanagala chaitanya
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에 대해 자세히 알아보기

질문:

2014년 3월 17일

답변:

2019년 4월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by