How to Begin a Numerical Analysis Project in Matlab?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 5K views
aleee
Messages
17
Reaction score
0
This is the project.
2l2xcg.jpg

I have until next week. The requirement for the class is c++. (elementary numerical analysis btw). I have an idea of what is going to happen for the results but i have no idea on how to program it. I've have probably used Matlab 3 or 4 times using a premade program. Can anyone point me in the right direction on how to start.
Thanks in advance.
 
Physics news on Phys.org
Here is the code:

n=10; <this is N, set it to different values, i.e. 10, 100,1000,10000,20000

sum=0;
for i=1:n
sum=sum+1/i^4;
endfor

E=sum-pi^4/90;
 
Thanks for the code. I got a few questions to it, but i want to first complete it for i can learn a little programming of it.