怎么用Matlab计算这个二重积分?syms x yf=(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.怎么算的,有急用,关键是
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 13:29:17
怎么用Matlab计算这个二重积分?syms x yf=(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.怎么算的,有急用,关键是
怎么用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.
怎么算的,有急用,关键是要方法.
怎么用Matlab计算这个二重积分?syms x yf=(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