Integrating numerical solutions from NDSolve in Mathematica

3 replies · 4K views · last reply
Livethefire
Messages
49
Reaction score
0
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)
 
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".
 
Thanks, Yeah I got it working.

There are curly brackets around my numerical results though :

Output: {100.00}

Anyway to get rid of them?