Simpson's rule numerical integration in C++ or MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter xpoormanx
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 13K views
xpoormanx
Messages
2
Reaction score
0
http://img55.imageshack.us/img55/3461/scan0001op5.jpg


Thank You !
 
Last edited by a moderator:
Physics news on Phys.org
You understand, don't you, that no one here is going to do your homework for you! The problem does say, after all, "you have to write the code yourself". You might start by writing out exactly what "Simpson's rule" is.
 
And please refrain from messing up the page layout by posting stupidly oversized imageshack images.
 
It is not homework it is something extra
I just need help on it

which one more easy using C ++ or MATLAB
 
xpoormanx said:
It is not homework it is something extra
I just need help on it

which one more easy using C ++ or MATLAB

If you already know how to use MATLAB then I am fairly certain that using MATLAB will be easier. C++ has various complexities which are not relevant or helpful to solving your particular problem which in MATLAB you will simply not have to worry about.
 
I hate this too big image. could you type these words in post instead?
 
xpoormanx said:
It is not homework it is something extra
I just need help on it

which one more easy using C ++ or MATLAB

It will be easiest to use whatever programming language you already know, and have installed on your computer.