Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15380
| From | Youngjoo Chung <ychung12@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Problem with change of variables in an integral |
| Date | 2013-09-08 06:50 +0000 |
| Message-ID | <l0h6np$7he$1@smc.vnet.net> (permalink) |
| References | <l09sej$jbp$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Dear Alexei,
Integrate[...] in Map[...] will be evaluated first before Map can apply ReplaceAll[...], so nothing is done by Map.
There is a typo in
Integrate[E^(i \[Phi])/(1 + (E^(i \[Phi]) r)^3), {r, 0, \[Infinity]}]
i needs to be changed to I. Then it will produce the same result.
Transforming integrals by change of variables is not straightforward in Mathematica, especially if the integral can be evaluated in closed form. One method involves wrapping the integral with Hold or HoldForm so that evaluation is not done. In addition, simple replacement of the integration variables will not work and the integrand must be divided by the Jacobian corresponding to the variable transformation.
Another method is to write a customized code based on the box language of Mathematica to interpret the 2-D form of integrals, which does not evaluate the integrals but does so only when asked. This is what is done in the SymbolicComputing package (http://symbcomp.gist.ac.kr, WTC 2011). The commands are:
<<SymbolicComputing`
SCTransInt[\[Integral]f[z] \[DifferentialD]z,
TransVar -> {z, r, z == r E^(I \[Phi])},
ReplVar -> {r, 0, \[Infinity]}] /. \[Phi] -> 2 \[Pi]/3
It is to be noted that once the package is loaded, integrals, products and sums in 2-D form are not evaluated. Evaluation can be done using the functions SCEvalInt, SCEvalProd, and SCEvalSum, respectively. Kernel functions Integrate, Product, and Sum are the same and can be used for immediate evaluation.
Sincerely,
Youngjoo Chung
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Problem with change of variables in an integral Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-09-05 12:12 +0000 Re: Problem with change of variables in an integral Youngjoo Chung <ychung12@gmail.com> - 2013-09-08 06:50 +0000
csiph-web