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


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

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

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: ComplexExpand off by a factor of (-1)?
Date 2013-02-23 12:01 +0000
Message-ID <kgab2o$c7m$1@smc.vnet.net> (permalink)
References <20130222060524.703B768D0@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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.
>

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


Thread

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

csiph-web