help-octave
[Top][All Lists]
Advanced

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

Re: Intergration help required


From: Juan Pablo Carbajal
Subject: Re: Intergration help required
Date: Fri, 27 Jul 2012 16:07:40 +0200

On Fri, Jul 27, 2012 at 3:54 PM, Jordi Gutiérrez Hermoso
<address@hidden> wrote:
>   f = eval(vectorize("@(t)
> (cos(10^11*pi*(t-(0.12*10^(-6)))^2))^2*exp(i*14.178*t)"))
>     quadgk(f, -5, 5)
>     quadv(f, -5, 5)

If you do not understand what Jordi means just try this (using his
definition of f)

t=linspace(.01,1,1e3)'; plot(t,f(t))

If you are doing numerical calculus to understand/study real life
phenomena, you may not need infinite resolution and you can use a
smoothed version of your function. If you want "exact" mathematics you
will need a lot of iterations for your numerical scheme... if the
integral exits...

-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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