How to know integration technique used by quadpack [closed]

你说的曾经没有我的故事 提交于 2019-12-02 00:26:24

问题


I have been learning about QUADPACK and I used scipy.integrate.quad to calculate an integral from 0 to infinite. It gave a very good result, but now I want to know which integration method (QAGI, QAWF,etc.) the software has applied. Is there any way for printing the technique? Does the software apply some decision tree? Thanks in advance for your time. Regards.


回答1:


As scipy is open source, you can actually read the code for integrate.quad, which says:

For finite integration limits, the integration is performed using a Clenshaw-Curtis method which uses Chebyshev moments. ... If one of the integration limits is infinite, then a Fourier integral is computed (assuming w neq 0).

The call in _quad for an infinite bound is to _quadpack._qagie.



来源:https://stackoverflow.com/questions/21153436/how-to-know-integration-technique-used-by-quadpack

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!