Mathematica solution with an imaginary part

  • Context: Mathematica 
  • Thread starter Thread starter ehrenfest
  • Start date Start date
  • Tags Tags
    Imaginary Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
ehrenfest
Messages
2,001
Reaction score
1
Can someone please explain why the result of the following has an imaginary part when I put it into mathematica 6.0?

Code:
Sum[Sin[n 6]/2^n, {n, 1, Infinity}]
 
Physics news on Phys.org
Because
Code:
Sin[n 6] / 2^n
is
Code:
2^-n * Sin[n 6]
 
Wrap it in a full simplify command:

Code:
FullSimplify[Sum[Sin[n 6]/2^n, {n, 1, Infinity}]]
 
DeepakS said:
Because
Code:
Sin[n 6] / 2^n
is
Code:
2^-n * Sin[n 6]

So what?