Integration of Numerical Solution Mathematica

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)
 
on Phys.org
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?
 
First[{100.00}] will give you 100.00
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K