use the for or while looping to the series S=4*[sin(theata)/1 +sin(3theata)/3+sin(5theata)/5+.....] ,,in the range 0<theata<pi with error bound of 10^-6..?....please help me to solve this question in the earliest opportunity
1 view (last 30 days)
Youssef Khmou on 15 Apr 2013
Edited: Youssef Khmou on 15 Apr 2013
Try this version :
r=6; % random
axis([0 4 0 1])
Now it approximates well the rectangle, the number of iterations is saved in the variable 'counter', finish the code with the desired prints .
To conclude you work, there a special name of the infinitesimal waves nears the edges , that phenomenon has a special name , it starts with G.....
More Answers (2)
Image Analyst on 15 Apr 2013
Hint, have a loop over k and calculate sin(k*theata)/k in the loop. I hope that's not doing too much of your homework for you. You still have to make the loop and sum up the term in the loop into the overall sum and then multiply that by 4.