scipy 可以计算具有复值被积函数(被积函数中的实部和虚部)的(双)积分吗?

发布于 2024-09-15 01:11:57 字数 29 浏览 0 评论 0原文

(由于我是新用户,无法上传显示积分的图片。)

(Couldn't upload the picture showing the integral as I'm a new user.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

┈┾☆殇 2024-09-22 01:13:22

谢谢达菲莫!
我正在计算惠更斯-菲涅耳衍射积分:极坐标中通过圆形(2D)孔径的平面和其他波衍射。

就编程而言:目前我的很多代码都在 Mathematica 中。我正在考虑更改为以下之一:scipy、java + flanagan 数学库、java + apache commons 数学库、gnu 科学库或八度。

我的第一个评估候选者是 scipy,但如果它不能处理复值被积函数,那么我必须改变周末的计划......

Thanks duffymo!
I am calculating Huygens-Fresnel diffraction integrals: plane and other wave diffraction through circular (2D) apertures in polar coordinates.

As far as the programming goes: Currently a lot of my code is in Mathematica. I am considering changing to one of: scipy, java + flanagan math library, java + apache commons math library, gnu scientific library, or octave.

My first candidate for evaluation is scipy, but if it cannot handle complex-valued integrands, then I have to change my plans for the weekend...

我不会写诗 2024-09-22 01:12:47

是的。这些积分(我假设它们是二维空间中某个区域的面积积分)可以使用适当的求积规则来计算。

您还可以使用格林定理将它们转换为轮廓积分并使用高斯求积沿路径进行积分。

Yes. Those integrals (I'll assume they're area integrals over a region in 2D space) can be calculated using an appropriate quadrature rule.

You can also use Green's theorem to convert them into contour integrals and use Gaussian quadrature to integrate along the path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文