DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

Is there a good way to compute indefinite integral numerically? How does FFT compare to numerical integration?

Started by Mike ●May 18, 2007
widmar wrote:
> glen herrmannsfeldt wrote: > >>I would think integrating sinc(t) is about as easy as summing >>a harmonic series.
> It would seem so until you try it numerically,
> Si(x) = x - x^3/3*3! + x^5/5*5! - x^7/7*7! + ...
> for even moderately large x. In fact, even with rudimentary skills > you'd know you're dead in a water before you even started. So, what's a > trick with series that makes it easy?
The harmonic series, sum from 1 to infinity of 1/x, diverges but very slowly, about like log. No tricks help in summing a diverging series. http://en.wikipedia.org/wiki/Harmonic_series_(mathematics) According to the above, the sum of the first 1e41 terms is less than 100. The alternating harmonic series does converge, it seems to ln(2). -- glen
Androcles wrote:

> "widmar" <jrw@sdynamix.com> wrote in message > news:46576CE0.630B4299@sdynamix.com...
(snip)
> : It would seem so until you try it numerically,
> : Si(x) = x - x^3/3*3! + x^5/5*5! - x^7/7*7! + ...
> : for even moderately large x.
> Correction: > sine(x) > or > sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ...+x^(2k-1)/(2k-1)! > for all x belonging to R.
Note that Si(x) is not sin(x): http://mathworld.wolfram.com/SineIntegral.html -- glen
glen herrmannsfeldt wrote:
> > > : It would seem so until you try it numerically, > > : Si(x) = x - x^3/3*3! + x^5/5*5! - x^7/7*7! + ... > > : for even moderately large x. > > > Correction: > > sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ...+x^(2k-1)/(2k-1)! > > Note that Si(x) is not sin(x): > http://mathworld.wolfram.com/SineIntegral.html
Right, it wasn't a typo, however I don't see anything that could be used for large arguments. There's no sign of a computationally more useful formulation for Si(x) via its governing de, y''' + 2y''/t + y' = 0 for initial values [0 1 0]. Due to its known steady state it can also be quite useful for testing numerical integrators long term stability & accuracy - note that all roots converge onto a "graveyard" of numerical integration. --- sdx - modeling, simulation. http://www.sdynamix.com