This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: % Important: Add 2.0 to all the terms in column 2 of BBMNEW. fclose(fid); The first three elements of x are -1 -5 -4. The first three elements of x are -27.3716 1.3429 10.2887 Determine the output of the disp statements in the first code above. Use your modified version of thomas.m – call it spthomas.m. Discuss why the data as given (without adding 2.0 to column 2 of BBNEW), produces an error in the Thomas algorithm. Does this mean that there is no solution with the original BBNEW data? You should have a runspthomas.m which reads the bmat.txt file and prepares the data for spthomas.m. Submit spthomas.m and runspthomas.m files to WebCT. Problem 2 . (25 points) Write a new thomas which works with spdisp for an anti-tridiagonal matrix. Use the first six rows of the bmat.txt as your text case. Submit antispthomas.m and runantispthomas.m files to WebCT. Clearly show the x vector....
View Full Document
This note was uploaded on 04/26/2010 for the course CEG 616 taught by Professor Taylor during the Winter '10 term at Wright State.
- Winter '10