|
From: | Mahvish Nazir |
Subject: | Re: Intergration help required |
Date: | Tue, 31 Jul 2012 11:33:50 +0100 |
On Fri, Jul 27, 2012 at 3:54 PM, Jordi Gutiérrez HermosoIf you do not understand what Jordi means just try this (using his
<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)
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...
[Prev in Thread] | Current Thread | [Next in Thread] |