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

Mathematica Mathematica and Sums

  1. Oct 22, 2014 #1

    joshmccraney

    User Avatar
    Gold Member

    Does anyone know how to express a given function as a sum in mathematica using sigma notation? For example, I know how to make ##e^x = 1 + x^2/2 + x^3/6 + x^4/24...## but how would I have mathematica write it as ##e^x = \Sigma_{n=0}^{\infty} x^n/n!##?

    Thanks a ton!
     
  2. jcsd
  3. Oct 23, 2014 #2

    DrClaude

    User Avatar

    Staff: Mentor

    I'm not sure what you want here. If you want to write the sum yourself, use
    Code (Text):

    Sum[x^n/(n!),{n,0,Infinity}]
     
    Or do you want Mathematica to tell you what the sum is, given ##e^x##?
     
  4. Oct 23, 2014 #3

    joshmccraney

    User Avatar
    Gold Member

    I was trying to have mathematica tell me the sum given ##e^x## (or any other function for that matter.

    Thanks for responding!
     
  5. Oct 23, 2014 #4

    DrClaude

    User Avatar

    Staff: Mentor

    The only way I can think of to obtain this is using natural language input:
    Code (Text):

    = e^x series representation
     
     
  6. Oct 23, 2014 #5

    joshmccraney

    User Avatar
    Gold Member

    thanks for your help!
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook