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


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

Re: ComplexExpand off by a factor of (-1)?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-02-23 12:01 +0000
Last post2013-02-23 12:01 +0000
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ComplexExpand off by a factor of (-1)? Bob Hanlon <hanlonr357@gmail.com> - 2013-02-23 12:01 +0000

#13581 — Re: ComplexExpand off by a factor of (-1)?

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-02-23 12:01 +0000
SubjectRe: ComplexExpand off by a factor of (-1)?
Message-ID<kgab2o$c7m$1@smc.vnet.net>
expr = (E^(I*y) - E^(-I*y))/2*I;

If you plot your expression it is clear that it is -Sin[y] rather than Sin[y]

Plot[expr, {y, -Pi, Pi}]

ComplexExpand[expr]

-Sin[y]

Term-by-term comparison in power series

Assuming[{Element[n, Integers]},
 SeriesCoefficient[expr, {y, 0, n}] ==
   SeriesCoefficient[-Sin[y], {y, 0, n}] //
  FullSimplify]

True


Bob Hanlon


On Fri, Feb 22, 2013 at 1:05 AM,  <charles.ces@gmail.com> wrote:
> Would someone be able to help me understand why when I enter the expression:
>
> ComplexExpand[(E^(I*y) - E^(-I*y))/2*I] I get a result of -Sin[y] instead of Sin[y]?
>
> Thanks.
>
> Charles S.
>

[toc] | [standalone]


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


csiph-web