[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Intergration help required
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Intergration help required |
Date: |
Fri, 27 Jul 2012 09:54:23 -0400 |
On 27 July 2012 09:38, Mahvish Nazir <address@hidden> wrote:
> can u[sic] please tell me how to do the integration(numerical) for:
> (cos(10^11*pi*(t-(0.12*10^(-6)))^2))^2*exp(i*14.178*t) over the liits -5 to
> 5
Your function oscillates far too quickly on the given domain to
perform a good numerical integration, but you can attempt it:
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)
You should play with the parameters for quadgk and quadv to get a
better approximation.
HTH,
- Jordi G. H.
- Intergration help required, haazu, 2012/07/24
- Re: Intergration help required, Jordi Gutiérrez Hermoso, 2012/07/24
- Re: Intergration help required, Mahvish Nazir, 2012/07/24
- Re: Intergration help required, Juan Pablo Carbajal, 2012/07/24
- Re: Intergration help required, Mahvish Nazir, 2012/07/24
- Re: Intergration help required, Mahvish Nazir, 2012/07/24
- Re: Intergration help required, Mahvish Nazir, 2012/07/27
- Re: Intergration help required,
Jordi Gutiérrez Hermoso <=
- Re: Intergration help required, Juan Pablo Carbajal, 2012/07/27
- Re: Intergration help required, Mahvish Nazir, 2012/07/31
- Re: Intergration help required, Mahvish Nazir, 2012/07/31
- Re: Intergration help required, Jordi Gutiérrez Hermoso, 2012/07/31
- Re: Intergration help required, Martin Helm, 2012/07/24
Re: Intergration help required, Juan Pablo Carbajal, 2012/07/24