Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: ComplexExpand off by a factor of (-1)?
Replies: 3   Last Post: Feb 23, 2013 7:01 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bob Hanlon

Posts: 695
Registered: 10/29/11
Re: ComplexExpand off by a factor of (-1)?
Posted: Feb 23, 2013 7:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.