matpowertest - k=10 err=9.09e-013 k=11 err=5.46e-012 k=12...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 % Tests matpower A=randn(6,6) for k=8:16 B=matpower(A,k) err=max(max(abs(B-A^k))) disp(sprintf('k=%2.0f err=%3.2e',k,err)) end k= 8 err=0.00e+000 k= 9 err=3.41e-013
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: k=10 err=9.09e-013 k=11 err=5.46e-012 k=12 err=3.64e-012 k=13 err=2.91e-011 k=14 err=5.82e-011 k=15 err=1.46e-010 k=16 err=0.00e+000 % It worked...
View Full Document

This note was uploaded on 05/08/2009 for the course MATH 5316 taught by Professor Dr.thomashagstrom during the Spring '09 term at SMU.

Ask a homework question - tutors are online