python – 如何在`scipy.integrate.dblquad`中增加函数的细分数?
发布时间:2020-12-05 05:44:50 所属栏目:Python 来源:互联网
导读:我正在使用scipy.integrate.dblquad,我收到此错误: UserWarning: The maximum number of subdivisions (50) has been achieved.If increasing the limit yields no improvement ... 我想增加这个限制,看看积分是否融合良好. documentation指定了如何为s
我正在使用scipy.integrate.dblquad,我收到此错误: UserWarning: The maximum number of subdivisions (50) has been achieved. If increasing the limit yields no improvement ... 我想增加这个限制,看看积分是否融合良好. documentation指定了如何为scipy.integrate.quad执行此操作(该函数将最大迭代次数作为参数),但不适用于 解决方法更简单的方法是使用nquad函数而不是dblquad.示例代码:from scipy.integrate import nquad options={'limit':100} integral=nquad(func,[[xmin,xmax],[ymin,ymax]],args=(other_arg,),opts=[options,options]) 请注意,有几个参数是列表.这些列表的元素按顺序应用于每个坐标.请参阅nquad here的文档. (编辑:十堰站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- python – 将MIMEText编码为引用的可打印文件
- Python NumPy库安装使用笔记
- python – 随机裁剪数据增强卷积神经网络
- python – nvcc致命:没有为theano选项’gpu-architecture’
- python中的mysql数据库LIKE操作符详解
- python – matplotlib.pyplot.imshow:在使用属性“sharex”
- python – 如何在Linux上打包Kivy IOS应用程序?
- python – Aiohttp,Asyncio:RuntimeError:事件循环已关闭
- python – 从appengine应用程序上传文件到谷歌云存储
- python – 函数参数中的列表理解