matlab计算四重积分问题,如何比较简单的计算四重积分呢?必有重谢
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/17 17:18:34
matlab计算四重积分问题,如何比较简单的计算四重积分呢?必有重谢
>> x=14*sin(pi/8);
>> y=15-14*cos(pi/8);
>> syms s t m n;
>> int(int(int(int('1./((((x-m).^2+y.^2+n.^2).^0.5).*(((s-m).^2+225+(t-n).^2).^1.5))',s,-0.15,0.15),t,-0.15,0.15),n,-7,7),m,-9,9);
Error using ==> sym.sym>sym.sym/scalarsym at 382
Error:'expression' expected [line 1,col 3]
Error in ==> sym.sym>sym.sym/char2sym at 337
Scell = scalarsym(x);
Error in ==> sym.sym>sym.sym/symchar at 182
Scell = char2sym(x);
Error in ==> sym.sym>sym.sym at 120
S = cell2sym(S,symchar(x,a,nargin));
Error in ==> sym.int at 28
f = sym(f);
四重积分怎么求比较简单啊,不需要编程序最好
>> x=14*sin(pi/8);
>> y=15-14*cos(pi/8);
>> syms s t m n;
>> int(int(int(int('1./((((x-m).^2+y.^2+n.^2).^0.5).*(((s-m).^2+225+(t-n).^2).^1.5))',s,-0.15,0.15),t,-0.15,0.15),n,-7,7),m,-9,9);
Error using ==> sym.sym>sym.sym/scalarsym at 382
Error:'expression' expected [line 1,col 3]
Error in ==> sym.sym>sym.sym/char2sym at 337
Scell = scalarsym(x);
Error in ==> sym.sym>sym.sym/symchar at 182
Scell = char2sym(x);
Error in ==> sym.sym>sym.sym at 120
S = cell2sym(S,symchar(x,a,nargin));
Error in ==> sym.int at 28
f = sym(f);
四重积分怎么求比较简单啊,不需要编程序最好
x=14*sin(pi/8);
y=15-14*cos(pi/8);
syms s t m n;
int(int(int(int(1./((((x-m).^2+y.^2+n.^2).^0.5).*(((s-m).^2+225+(t-n).^2).^1.5)),s,-0.15,0.15),t,-0.15,0.15),n,-7,7),m,-9,9);
Warning: Explicit integral could not be found.
再问: 谢谢你的回答!请问是因为加了单引号才出错的吗,我记得我上次就加了单引号没错啊,只不过上次表达式比较简单。另外,我分不清楚是不是应该用点乘,请问是该用点乘还是普通乘呢?
再答: 是的,加了单引号 x,y成了变量了
y=15-14*cos(pi/8);
syms s t m n;
int(int(int(int(1./((((x-m).^2+y.^2+n.^2).^0.5).*(((s-m).^2+225+(t-n).^2).^1.5)),s,-0.15,0.15),t,-0.15,0.15),n,-7,7),m,-9,9);
Warning: Explicit integral could not be found.
再问: 谢谢你的回答!请问是因为加了单引号才出错的吗,我记得我上次就加了单引号没错啊,只不过上次表达式比较简单。另外,我分不清楚是不是应该用点乘,请问是该用点乘还是普通乘呢?
再答: 是的,加了单引号 x,y成了变量了