MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Logical evaluation


On 10/16/07 at 3:27 AM, mmandelberg at comcast.net (Michael Mandelberg)
wrote:

>I can't figure out why the following does not evaulate to TRUE:

>In[100]:= \[ExponentialE]^(-\[ImaginaryI] x) + \[ExponentialE]^(\
>\[ImaginaryI] x) == 2 TrigToExp[Cos[x]]

>Out[100]= \[ExponentialE]^(-\[ImaginaryI] x) + \[ExponentialE]^(\
>\[ImaginaryI] x) ==
>2 (\[ExponentialE]^(-\[ImaginaryI] x)/ 2 +
>\[ExponentialE]^(\[ImaginaryI] x)/2)

>Any ideas?

Use Simplify, i.e.,

In[9]:= E^((-I)*x) + E^(I*x) == 2*TrigToExp[Cos[x]] // Simplify

Out[9]= True

Also, converting expressions to InputForm before pasting them
into email makes them much more readable and easier to respond to.
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Integrate question
  • Next by Date: Re: Logical evaluation
  • Previous by thread: Re: Logical evaluation
  • Next by thread: Re: Logical evaluation