help-octave
[Top][All Lists]
Advanced

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

Re: Intergration help required


From: Mahvish Nazir
Subject: Re: Intergration help required
Date: Tue, 31 Jul 2012 11:33:50 +0100



On Fri, Jul 27, 2012 at 3:07 PM, Juan Pablo Carbajal <address@hidden> wrote:
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/

 
 
when i write the first line of above code, it gives me parse error, syntax error

reply via email to

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