DOC PREVIEW
USC EE 518 - HW2 solution

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Problem 8 clc; clear all; close all error = (1:10).*10^(-2); for i = 1:length(error) N(i) = Find_N(error(i)); end plot(error, N); grid on function N = Find_N(error) if error<0 fprintf('error should be positive'); return end N = 0; sum = 0; while abs(sum - pi^2/6)>error N = N + 1; sum = sum + 1/N^2; end


View Full Document

USC EE 518 - HW2 solution

Download HW2 solution
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view HW2 solution and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view HW2 solution 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?