Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14795
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Calculating a simple integral |
| Date | 2013-06-10 08:01 +0000 |
| Message-ID | <kp4155$fcn$1@smc.vnet.net> (permalink) |
| References | <kp1e82$80h$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On 6/9/2013 3:26 AM, dsmirnov90@gmail.com wrote:
> If there is a way to calculate with Mathematica the following integral:
>
> in = -((-1 + Cos[kz])/(kz^2 (kr^2 + kz^2)^2 (kz^2 - 4 \[Pi]^2)^2))
> Integrate[in, {kz, -Infinity, Infinity}, Assumptions -> kr > 0]
>
> Another system calculates the same integral instantly. :)
>
> Thanks for any suggestions.
>
You did not say which version you used.
I do get result from 9.01, but it took about 2 minutes
--------------------------
ClearAll["`*"];
in = -((-1 + Cos[kz])/(kz^2 (kr^2 + kz^2)^2 (kz^2 - 4 \[Pi]^2)^2));
Assuming[kr > 0, Integrate[in, {kz, -Infinity, Infinity}]]
-(1/(32 kr^5 \[Pi]^3 (kr^2+4 \[Pi]^2)^3))(-3 kr^7-
28 kr^5 \[Pi]^2+112 kr^2 \[Pi]^4+192 \[Pi]^6+4 kr \[Pi]^(5/2)
(5 kr^2+4 \[Pi]^2) MeijerG[{{1/2,1},{}},{{-(1/2),1/2,1},{0}},
-((I kr)/2),1/2]+4 kr \[Pi]^(5/2) (5 kr^2+4 \[Pi]^2)
MeijerG[{{1/2,1},{}},{{-(1/2),1/2,1},{0}},(I kr)/2,1/2]+
8 kr^3 \[Pi]^(5/2) MeijerG[{{1/2,1},{}},{{-(1/2),1,3/2},{0}},
-((I kr)/2),1/2]+32 kr \[Pi]^(9/2) MeijerG[{{1/2,1},{}},
{{-(1/2),1,3/2},{0}},-((I kr)/2),1/2]+8 kr^3 \[Pi]^(5/2)
MeijerG[{{1/2,1},{}},{{-(1/2),1,3/2},{0}},(I kr)/2,1/2]+
32 kr \[Pi]^(9/2) MeijerG[{{1/2,1},{}},{{-(1/2),1,3/2},{0}},(I kr)/2,1/2])
--------------------------------------
But something does not seem to be right. Can't evaluate any of
the MeijerG functions in the result for any kr value. For
example
N[MeijerG[{{1/2, 1}, {}}, {{-(1/2), 1/2, 1}, {0}}, -((I kr)/2), 1/
2] /. kr -> 0]
gives error
MeijerG::hdiv: MeijerG[{{0.5,1.},{}},{{-0.5,0.5,1.},{0.}},0.,0.5]
does not exist. Arguments are not consistent. >>
--Nasser
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Calculating a simple integral dsmirnov90@gmail.com - 2013-06-09 08:26 +0000 Re: Calculating a simple integral Roland Franzius <roland.franzius@uos.de> - 2013-06-10 08:04 +0000 Re: Calculating a simple integral "Nasser M. Abbasi" <nma@12000.org> - 2013-06-10 08:01 +0000
csiph-web