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

Integration of Numerical Solution Mathematica

  1. Jul 20, 2011 #1
    I am kind of new to mathematica, and have checked the documentation but can't seem to find an answer.

    I have solved 3 coupled differential equations using NDSolve.

    I wish to integrate the solutions over a range but I'm not sure how to do it - the documentation seems to deal only with analytical functions. If anyone could point me in the right direction, that would be great.

    (I have called my solutions "s" and was able to plot them using "/.s", I would imagine I will have to use something like this again)
  2. jcsd
  3. Jul 20, 2011 #2


    Staff: Mentor

    If you can plot them you should be able to integrate them. Simply plot over the region you want to integrate, then replace "Plot" with "NIntegrate".
  4. Jul 25, 2011 #3
    Thanks, Yeah I got it working.

    There are curly brackets around my numerical results though :

    Output: {100.00}

    Anyway to get rid of them?
  5. Jul 25, 2011 #4
    First[{100.00}] will give you 100.00
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook