Question
Hello: Please complete a Matlab code for the following data and graph 4 errors vs n (number of iteration) err1=[0.500000000000000,0.0833333333333333,0.00245098039215685,2.12389982001682e-06,1.59472435257157e-12,2.22044604925031e-16]; n1=length(err1); err2=[0.666666666666667,0.0666666666666667,0.0146341463414632,0.000422707866593264,2.12358245033073e-06,3.15774961734405e-10,2.22044604925031e-16]; n2=length(err2); err3=[0.500000000000000,0.125000000000000,0.0546875000000000,0.0220031738281250,0.00921241892501712,0.00379819313308372,0.00157624121889421,0.000652385233261388,0.000270314908432212,0.000111952964368500,4.63750317067913e-05,1.92087216579484e-05,7.95658944263700e-06,3.29571414603436e-06,1.36513174653352e-06,5.65455698042783e-07,2.34219485584219e-07,9.70168763103629e-08,4.01857080944978e-08,1.66454650063486e-08,6.89477719362230e-09,2.85591017501474e-09,1.18295684359282e-09,4.89996709873708e-10,2.02963423845404e-10,8.40707503613203e-11,3.48236994796025e-11,1.44246836697448e-11,5.97477622932274e-12,2.47490916649440e-12,1.02562403014872e-12,4.24993373826510e-13,1.76081371705550e-13,7.32747196252603e-14,3.08642000845794e-14,1.31006316905768e-14,5.77315972805081e-15,2.88657986402541e-15,1.33226762955019e-15,4.44089209850063e-16,2.22044604925031e-16]; n3=length(err3);
Hello: Please complete a Matlab code for the following data and graph 4 errors vs n (number of iteration)
err1=[0.500000000000000,0.0833333333333333,0.00245098039215685,2.12389982001682e-06,1.59472435257157e-12,2.22044604925031e-16]; n1=length(err1); err2=[0.666666666666667,0.0666666666666667,0.0146341463414632,0.000422707866593264,2.12358245033073e-06,3.15774961734405e-10,2.22044604925031e-16]; n2=length(err2); err3=[0.500000000000000,0.125000000000000,0.0546875000000000,0.0220031738281250,0.00921241892501712,0.00379819313308372,0.00157624121889421,0.000652385233261388,0.000270314908432212,0.000111952964368500,4.63750317067913e-05,1.92087216579484e-05,7.95658944263700e-06,3.29571414603436e-06,1.36513174653352e-06,5.65455698042783e-07,2.34219485584219e-07,9.70168763103629e-08,4.01857080944978e-08,1.66454650063486e-08,6.89477719362230e-09,2.85591017501474e-09,1.18295684359282e-09,4.89996709873708e-10,2.02963423845404e-10,8.40707503613203e-11,3.48236994796025e-11,1.44246836697448e-11,5.97477622932274e-12,2.47490916649440e-12,1.02562403014872e-12,4.24993373826510e-13,1.76081371705550e-13,7.32747196252603e-14,3.08642000845794e-14,1.31006316905768e-14,5.77315972805081e-15,2.88657986402541e-15,1.33226762955019e-15,4.44089209850063e-16,2.22044604925031e-16]; n3=length(err3); err4=[0.400000000000000,0.0142131979695435,3.64403551555981e-07,2.22044604925031e-16] n4=length(err4);
clear; close all;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started