MathGroup Archive 2005

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

Search the Archive

ExpToTrig with Real Numbers

A calculation gives me the following as a part of the output that I see
on the screen: (i = Imaginary)

-0.262484 i  Exp[-0.951249 i t] +   0.262484 i Exp[0.951249 i t]

I want to apply ExpToTrig and , of course, end up with 0 for the Cosine
part and - .262484*2  Sin [0.951249] for the Sine part ...

instead I get  (which I decided to look at output with InputForm)

(-0.2624844042359744*I)*Cos[0.9512492197250393*t] +
(0.26248440423597375*I)*Cos[0.9512492197250397*t] -
 0.2624844042359744*Sin[0.9512492197250393*t] -

I can see from this that the coefficients and exponent numbers are very
close but not identical  although , I think, in theory they should be.
I'm not worried about the 10th decimal place.    How do i get the result
I want in a general way?

thanks....jerry blimbaum

  • Prev by Date: Re: Matrices with Mathematica 5.1
  • Next by Date: RealValued functions and derivatives
  • Previous by thread: Re: Re: Questions regarding MatrixExp, and its usage
  • Next by thread: Re: ExpToTrig with Real Numbers