matlab中求积分的函数int程序,请教一个关于积分函数int的问题

这篇博客探讨了在Matlab中遇到的双层积分计算问题,包括'Log of zero'警告和矩阵非正方形错误。作者在尝试使用`dblquad`函数进行复杂数学表达式的积分时,遇到了这些问题,导致计算中断。文章详细记录了错误信息,并可能涉及数值积分的稳定性、边界条件设置以及异常处理等方面的内容。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

Warning: Log of zero.

> In dblquad_test>@(x,u)(log(x-u)+log(sqrt(u^2+x^2)))/2 at 5

In dblquad>innerintegral at 84

In quad at 62

In dblquad at 64

In dblquad_test at 6

Warning: Log of zero.

> In dblquad_test>@(x,u)(log(x-u)+log(sqrt(u^2+x^2)))/2 at 5

In dblquad>innerintegral at 84

In quad at 62

In dblquad at 64

In dblquad_test at 6

Warning: Log of zero.

> In dblquad_test>@(x,u)(log(x-u)+log(sqrt(u^2+x^2)))/2 at 5

In quad at 62

In dblquad>innerintegral at 88

In quad at 62

In dblquad at 64

In dblquad_test at 6

??? Error using ==> mpower

Matrix must be square.

Error in ==> dblquad_test>@(x,u)(log(x-u)+log(sqrt(u^2+x^2)))/2 at 5

F=@(x,u)(log(x-u)+log(sqrt(u^2+x^2)))/2;

Error in ==> quad at 62

y = f(x, varargin{:});

Error in ==> dblquad>innerintegral at 88

Q(i) = feval(quadf, intfcn, xmin, xmax, tol, trace, y(i), varargin{:});

Error in ==> quad at 62

y = f(x, varargin{:});

Error in ==> dblquad at 64

Q = feval(quadf, @innerintegral, ymin, ymax, tol, trace, intfcn, ...

Error in ==> dblquad_test at 6

Q=dblquad(F, 0, 0.04, 0, 0.04)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值