Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica Sums

  1. Nov 18, 2014 #1

    joshmccraney

    User Avatar
    Gold Member

    Hi PF!

    So in mathematica I am trying to see if a function converges so I type: SumConverge[2/(n*Pi) Exp[-n^2*t] Sin[n x], n]

    All mathematica does here is echo back what I typed in. Is something I'm doing wrong?

    Thanks!
     
  2. jcsd
  3. Nov 18, 2014 #2

    joshmccraney

    User Avatar
    Gold Member

    For the record, there seems to be a problem with the n^2 in the Exp
     
  4. Nov 18, 2014 #3

    Dale

    Staff: Mentor

    The function you want is SumConvergence, not SumConverge. Usually, when a Mathematica function simply echoes your input that means that it cannot determine the answer.

    In this case, the problem isn't the n^2, the problem is the Sin[n x]. If x is some rational multiple of pi then Mathematica can correctly determine that the convergence criteria is Re[t]>0. However, for an arbitrary x or for an x which is not a rational multiple of pi then Mathematica doesn't know, so it returns the input.
     
    Last edited: Nov 21, 2014
  5. Nov 21, 2014 #4

    joshmccraney

    User Avatar
    Gold Member

  6. Nov 24, 2014 #5
    It just needs a little hint

    In[1]:= Assuming[t > 0,
    FullSimplify[SumConvergence[2/(n*Pi) Exp[-n^2*t] Sin[n x], n]]]

    Out[1]= True
     
  7. Nov 25, 2014 #6

    joshmccraney

    User Avatar
    Gold Member

    I copied what you have and all i received out was an echo... :(
     
  8. Nov 25, 2014 #7
    Hummm. I reboot the machine. Win7 64, MMA 9 64. Open MMA. Scrape

    Assuming[t > 0, FullSimplify[SumConvergence[2/(n*Pi) Exp[-n^2*t] Sin[n x], n]]]

    off the screen, paste it into the notebook, <shift><enter> and a few seconds later it replies True.

    The result is the same even if you remove the 2/(n*Pi).

    If you could reply with your having done exactly those steps, nothing more, and you still get echo then we can try to figure out where to go next.

    Unfortunately all the work is done internally and Trace tells us nothing about where it might be going wrong.

    You might try all the examples in the help pages for SumConvergence and verify that they work for you.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica Sums
  1. Mathematica and Sums (Replies: 4)

Loading...