[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Numerical Integration

From: Ivan Sutoris
Subject: Re: Numerical Integration
Date: Sat, 6 Dec 2008 19:57:38 +0100

On Sat, Dec 6, 2008 at 6:26 PM, Marcin Ślęczka <address@hidden> wrote:
> I'm a beginner on using the Octave. I've a problem with numerical integration
> of such a function:
> \int_0^1 dt \frac{1}{t^{3/2}}\exp[-iR(t)]\frac{1}{(1+R^2(t))^2} where
> R(t)=\int_0^t dx e^{-x^2}\sin(at+b) (tex code)
> I've no idea how to integrate this. Every help will be usefull.
> Thanks for help


You can integrate univariate function with 'quad' command. You need to
define function under integral (e.g. by programming it in separate
m-file), see 'help quad' for details. Looking at your function, R(t)
seems to be a multiply of error function which is available directly
in Octave (see 'help erf'), so you don't have to compute the second

Ivan Sutoris

reply via email to

[Prev in Thread] Current Thread [Next in Thread]