跪求用Mathematica或者Matlab编程求椭圆周长和椭球体表面积的代码~

2025-04-04 20:20:42
推荐回答(1个)
回答1:

线积分和面积积分的问题,不记得了,一时也想不起。
提供几个积分函数,希望有所启发。

函数1:
function[out]=integral(f,from,to);
index =from:0.01:to;
m =length(index);
for n =1:m
outtp(n) =subs(f,index(n));
end
out=sum(outtp)*0.01;

syms x y
y =x^2;
int(det(y),x,-2,5); //这种方式是系统自带函数