Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9835 > unrolled thread

Integration bug? Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}]

Started bysykesy <sykesy@gmail.com>
First post2012-04-27 10:48 +0000
Last post2012-05-03 08:35 +0000
Articles 4 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Integration bug?  Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}] sykesy <sykesy@gmail.com> - 2012-04-27 10:48 +0000
    Re: Integration bug?  Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}] DC <b.gatessucks@gmail.com> - 2012-04-29 06:10 +0000
    Re: Integration bug?  Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}] "jf.alcover" <jf.alcover@gmail.com> - 2012-05-02 09:47 +0000
    Re: Integration bug?  Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}] "jf.alcover" <jf.alcover@gmail.com> - 2012-05-03 08:35 +0000

#9835 — Integration bug? Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}]

Fromsykesy <sykesy@gmail.com>
Date2012-04-27 10:48 +0000
SubjectIntegration bug? Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}]
Message-ID<jndti3$jik$1@smc.vnet.net>
Hi all,

I am trying to compute the following integral

Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}, Assumptions->p>0]

for which Mathematica gives me the answer,

8 Pi (BesselJ[2,1]-BesselJ[3,1])

I was confused as to why the integral did not depend on p.

I used the following numerical approach to the problem,

Plot[NIntegrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}], {p, 0, 2
Pi}]

And found that the integral did depend on p.

Is there something I am missing here? For a long time I thought I must
be doing something very obvious wrong, but I can't see what it would
be. Can anybody help me with this issue?

best wishes,
Andrew Sykes

[toc] | [next] | [standalone]


#9866

FromDC <b.gatessucks@gmail.com>
Date2012-04-29 06:10 +0000
Message-ID<jnim10$aj8$1@smc.vnet.net>
In reply to#9835
I think that's the result for p=0; are you sure you have not defined p=0 somewhere before evaluating the integral ?

[toc] | [prev] | [next] | [standalone]


#9917

From"jf.alcover" <jf.alcover@gmail.com>
Date2012-05-02 09:47 +0000
Message-ID<jnqvrv$j75$1@smc.vnet.net>
In reply to#9835
Le vendredi 27 avril 2012 12:48:35 UTC+2, sykesy a =E9crit :
> Hi all,
>
> I am trying to compute the following integral
>
> Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}, Assumptions->p>0]
>
> for which Mathematica gives me the answer,
>
> 8 Pi (BesselJ[2,1]-BesselJ[3,1])
>
> I was confused as to why the integral did not depend on p.
>
> I used the following numerical approach to the problem,
>
> Plot[NIntegrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}], {p, 0, 2
> Pi}]
>
> And found that the integral did depend on p.
>
> Is there something I am missing here? For a long time I thought I must
> be doing something very obvious wrong, but I can't see what it would
> be. Can anybody help me with this issue?
>
> best wishes,
> Andrew Sykes

Hello,

Here is an "empirical" closed form of the integral:
8*Pi*(BesselJ[2, 1] - BesselJ[3, 1])*Cos[2*p]^2 +
Pi*(40*BesselJ[1, 1]-22*BesselJ[0, 1])*Sin[2*p]^2

hth

[toc] | [prev] | [next] | [standalone]


#9922

From"jf.alcover" <jf.alcover@gmail.com>
Date2012-05-03 08:35 +0000
Message-ID<jntg0i$t9d$1@smc.vnet.net>
In reply to#9835
Le vendredi 27 avril 2012 12:48:35 UTC+2, sykesy a =E9crit :
> Hi all,
>
> I am trying to compute the following integral
>
> Integrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}, Assumptions->p>0]
>
> for which Mathematica gives me the answer,
>
> 8 Pi (BesselJ[2,1]-BesselJ[3,1])
>
> I was confused as to why the integral did not depend on p.
>
> I used the following numerical approach to the problem,
>
> Plot[NIntegrate[Sin[2 t]^2 Cos[Cos[t - p]], {t, 0, 2 Pi}], {p, 0, 2
> Pi}]
>
> And found that the integral did depend on p.
>
> Is there something I am missing here? For a long time I thought I must
> be doing something very obvious wrong, but I can't see what it would
> be. Can anybody help me with this issue?
>
> best wishes,
> Andrew Sykes

Hello,

Here is an "empirical" closed form of the integral:
8*Pi*(BesselJ[2, 1] - BesselJ[3, 1])*Cos[2*p]^2 +
Pi*(40*BesselJ[1, 1]-22*BesselJ[0, 1])*Sin[2*p]^2

hth

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web