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


Groups > comp.soft-sys.math.mathematica > #15411

Re: Wrong result of Integrate with assumptions -- my

From Alex Krasnov <akrasnov@cory.eecs.berkeley.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Wrong result of Integrate with assumptions -- my
Date 2013-09-11 07:44 +0000
Message-ID <l0p71d$s2f$1@smc.vnet.net> (permalink)
References <ks82sr$jnp$1@smc.vnet.net> <20130909040629.D3B716A22@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Consider the following simpler examples (Mathematica 8.0.4):

In:	Expand[ExpToTrig[Integrate[t*E^(I*3*t), {t, a, b}] /. {a -> -1, b -> 2}]]
Out:	(-1/9 - I/3)*Cos[3] + (1/9 - (2*I)/3)*Cos[6] - (1/3 - I/9)*Sin[3] + (2/3 + I/9)*Sin[6]

In:	Expand[Assuming[Element[{a, b}, Reals], Integrate[t*E^(I*3*t), {t, a, b}]] /. {a -> -1, b -> 2}]
Out:	(-1/9 + I/3)*Cos[3] + (1/9 - (2*I)/3)*Cos[6] - (1/3 + I/9)*Sin[3] + (2/3 + I/9)*Sin[6]

The second result is already incorrect.

Alex


On Mon, 9 Sep 2013, Youngjoo Chung wrote:

> Hi,
>
> Actually, none of the assumptions are necessary. Integrate returns the result in the form ConditionalExpresssion[...] in case certain conditions must be met for the result to be valid. Otherwise, it is not necessary to add the Assumptions option.
>
> Nevertheless, res2 is not always correct as you mentioned. After some arithmetic, I observed that Re[res2] is always correct but Im[res2] is correct only when a > 0 and b > 0 regardless of w assuming Abs[a] < Infinity and Abs[b] < Infinity.
>
> Sincerely,
> Youngjoo Chung
>

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Wrong result of Integrate with assumptions -- my fault? Alain Cochard <Alain.Cochard@unistra.fr> - 2013-07-18 06:44 +0000
  Re: Wrong result of Integrate with assumptions -- my fault? Youngjoo Chung <ychung12@gmail.com> - 2013-09-09 03:53 +0000
  Re: Wrong result of Integrate with assumptions -- my Alex Krasnov <akrasnov@cory.eecs.berkeley.edu> - 2013-09-11 07:44 +0000

csiph-web