怎么用Matlab计算这个二重积分?
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/06 21:35:12
怎么用Matlab计算这个二重积分?
syms x y
f=(y*(y-0.042))/(y*(2+pi*sin(x))-0.084)
S=int(int(f,y,0.084/(2-sin(x)),0.0905/(2+sin(x))),x,pi/60,(4.2724/180)*pi)
用上面的式子算不出来,Matlab状态一直是Busy.
怎么算的,有急用,关键是要方法.
syms x y
f=(y*(y-0.042))/(y*(2+pi*sin(x))-0.084)
S=int(int(f,y,0.084/(2-sin(x)),0.0905/(2+sin(x))),x,pi/60,(4.2724/180)*pi)
用上面的式子算不出来,Matlab状态一直是Busy.
怎么算的,有急用,关键是要方法.
你好!
clc;clear all
format long
%要么
Y1=quad2d(@(x,y)(y.*(y-0.042))./(y.*(2+pi*sin(x))-0.084),pi/60,(4.2724/180)*pi,@(x)(0.084./(2-sin(x))),@(x)(0.0905./(2+sin(x))))
%或者
Y2=integral(@(x) arrayfun(@(x) integral(@(y)(y.*(y-0.042))./(y.*(2+pi*sin(x))-0.084),(0.084./(2-sin(x))),(0.0905./(2+sin(x)))),x),pi/60,(4.2724/180)*pi)
试一试吧!
Y1 =
6.636967271338606e-08
Y2 =
6.636967272022144e-08
clc;clear all
format long
%要么
Y1=quad2d(@(x,y)(y.*(y-0.042))./(y.*(2+pi*sin(x))-0.084),pi/60,(4.2724/180)*pi,@(x)(0.084./(2-sin(x))),@(x)(0.0905./(2+sin(x))))
%或者
Y2=integral(@(x) arrayfun(@(x) integral(@(y)(y.*(y-0.042))./(y.*(2+pi*sin(x))-0.084),(0.084./(2-sin(x))),(0.0905./(2+sin(x)))),x),pi/60,(4.2724/180)*pi)
试一试吧!
Y1 =
6.636967271338606e-08
Y2 =
6.636967272022144e-08