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

Mathematica newbie: why won't this integrate?

  1. Apr 24, 2012 #1
    EDIT: I solved it. Sorry for waste of time! :(

    Here is the function ψ[x]:

    0.0000551056 a0.25 (30240. a0.5 x - 80640. a1.5 x3 +
    48384. a2.5 x5 - 9216. a3.5 x7 + 512. a4.5 x9)(-((a x2)/2))

    I am trying to integrate ψ[x]*ψ[x] over all space (-infinity to +infinity).

    I don't get any error messages... it just says "running" for a good 5 minutes. Then it grinds to a halt and spits out the integral in its unsolved form.

    I have attached the notebook file if anyone is curious. I'm just really stumped on this one.

    Attached Files:

    Last edited: Apr 24, 2012
  2. jcsd
  3. Apr 27, 2012 #2
    I didn't look at your notebook but sounds like you're trying to find an exact answer which Mathematica cannot find. When it can't integrate it does what you say it does. Surely you're trying to find a numerical result right? Why not use NIntegrate?
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Mathematica newbie won't Date
Mathematica Cannot do the integral of the Hyper-geometric function? Mar 11, 2018
Mathematica Cannot Plot This Function in Mathematica Feb 26, 2018
Mathematica While Loop in Mathematica Feb 25, 2018
[Mathematica] Newbie with Compile[] Nov 18, 2011
Mathematica newby needs help with plot Feb 17, 2008