You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
for limit=logspace(2,4,3)
sum=0;
for n= 1:limit
sum=sum+1/n^2;
end
error=abs((pi^2/6)-sum);
disp([limit,sum,error]);
end
Cite As
Arthur Matlabus (2026). for and logspace (https://www.mathworks.com/matlabcentral/fileexchange/167406-for-and-logspace), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.09 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
