Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to make the matlab code to test the equation below convergent or divergent?
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/286293/image.jpeg)
below is the matlab code that I used to solve it. but more code is needed to display the convergent or divergent equation above.
function [ Sum_n, series_1 ] = Coba5( n, es )
%Percobaan 3
clc;
clear;
n = input ('nilai signifikan: ');
series_1 = 0
es = 0.5*(10^(2-n));
for ns = 1:100
x = cumsum( sin(2*ns)./ns.^2)
series_1 = series_1 + x
end
disp([es]')
end
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!