Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10830
| From | Richard Fateman <fateman@cs.berkeley.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Integration result depends on variable name / problem with BesselJ |
| Date | 2012-07-08 05:52 +0000 |
| Message-ID | <jtb77o$1ce$1@smc.vnet.net> (permalink) |
| References | <jt8vk9$k5c$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On 7/7/2012 2:30 AM, Kevin J. McCann wrote:
> This is a real issue. I tried the integrals as you suggested below, and
> indeed, I get the same results.
Me too. I tried this:
Timing[{Integrate[Sin[2 b] Exp[I t Cos[b - c]], {b, 0, 2 \[Pi]}],
Integrate[Sin[2 d] Exp[I t Cos[d - c]], {d, 0, 2 \[Pi]}]}]
returns
{148.562,{0,(8 I (-t Cos[t]+Sin[t]))/t^2}}
so the issue might be whether the variable of integration comes before
or after the other item inside the cosine.
Note that Cos[b-c] simplifies to Cos[b-c] but
Cos[d-c] simplifies to Cos[c-d].
Since the sign of c is irrelevant in whatever Mathematica is doing
(wrong :) ) and does not appear in the answer at all while it should..
we could just try this
Timing[{Integrate[Sin[2 b] Exp[I t Cos[b + c]], {b, 0, 2 \[Pi]}],
Integrate[Sin[2 d] Exp[I t Cos[d + c]], {d, 0, 2 \[Pi]}]}]
which returns {28.453, {0, 0}}.
At least it was faster.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Integration result depends on variable name / problem with BesselJ Integral representation "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-07-07 09:30 +0000 Re: Integration result depends on variable name / problem with BesselJ Richard Fateman <fateman@cs.berkeley.edu> - 2012-07-08 05:52 +0000
csiph-web