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)
江湖程序员 -Feiph(LM战士)
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)