由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Science版 - help with numerical integral transformation
相关主题
Re: matlab 求积分的问题Re: Anyone familiar with Hamiltonian System? Help!
Re: 求教相速度和群速度Re: [转载] ?问题:应用数学/数学物理
Re: 有没有讲FFT的入门中文书?.pdf or .html 的problem: travelling wave in a ring network
Re: 请问哪一种方法在作数值积分时收敛最快Re: 数列问题
numerical solving PDE on infinite semi-plane (转载)Re: which science tools are better?
顺流而下Re: A set problem
The Sex Life of an Electron问个卷积去卷积的问题
积分求解--谢谢先Re: Help! ?难题?
相关话题的讨论汇总
话题: integral话题: numerical话题: infty话题: dk
进入Science版参与讨论
1 (共1页)
f*******d
发帖数: 339
1
I need to calculate at points r1, r2, ... r_max the function f(r)
given
by
f(r)= \int_0^\infty g(k) sinc(kr) dk, where sinc(x)=sin(x)/x, g(k)
is a tabulated function. Now I can certainly do the integral one by
one, but hoping to use FFT to improve efficience, I observed that this
can be rewritten as
f(r)=1/r \int_0^\infty g(k)/k dk, which is just the sine
transformation.
So, I used the program sinft given in numerical recipes to
do the calculation. However, it seems that the result is very
bad a
f*******d
发帖数: 339
2

it was a typo, should be
f(r)=1/r \int_0^\infty g(k)/k sin(kr) dk
B***y
发帖数: 83
3

I am not sure about what problem might occur in the numeric
integration. Just
some suggestions:
1) when r is quite large, sin(kr) is oscillating quite fast, thus
usually you
need to take smaller time-steps to take care of it.
2) since you choose g(k) =1, then \int_0^\infty 1/k sin(kr) dk is not
absolutely
integrable, thus there might be some problem when k is small, where
1/k is quite
large, causing some numeric problem.
good luck.

【在 f*******d 的大作中提到】
:
: it was a typo, should be
: f(r)=1/r \int_0^\infty g(k)/k sin(kr) dk

1 (共1页)
进入Science版参与讨论
相关主题
Re: Help! ?难题?numerical solving PDE on infinite semi-plane (转载)
Re: 谁有fast Fourire transform的子程序)顺流而下
Re: MATLAB中FFT得到的数据是不是只能用前面一半?The Sex Life of an Electron
Re: 哪个结果是对的?积分求解--谢谢先
Re: matlab 求积分的问题Re: Anyone familiar with Hamiltonian System? Help!
Re: 求教相速度和群速度Re: [转载] ?问题:应用数学/数学物理
Re: 有没有讲FFT的入门中文书?.pdf or .html 的problem: travelling wave in a ring network
Re: 请问哪一种方法在作数值积分时收敛最快Re: 数列问题
相关话题的讨论汇总
话题: integral话题: numerical话题: infty话题: dk