matlab 向量场线积分

syms t x y z F
x=cos(t);
y=sin(t);
z=2*sin(t)^2-1;
F=[x^2*y , (1/3)*x^3,x*y ]  ; %场函数
V=[diff(x,t),diff(y,t),diff(z,t)];

r= int(dot(F,V),t,0,pi*2) %点积后积分
double(r)
View Code
原文地址:https://www.cnblogs.com/wdfrog/p/6949528.html