computerassignment i

1
ESO 208A: COMPUTATIONAL METHODS IN ENGINEERING Semester I, 2015-16 Computer Assignment # 1 Due on Thursday, September 10, 2015 Write a program (preferably in Matlab and without using the inbuilt functions) for solving a system of ‘n’ linear equations using (a) Gaussian elimination with partial pivoting and (b) LU Decomposition. Demonstrate the efficiency of the algorithm by taking a numerical example. The program should take input from a file and write the output in another file.

Upload: pravesh-kumar

Post on 14-Dec-2015

9 views

Category:

Documents


0 download

DESCRIPTION

assignment

TRANSCRIPT

Page 1: ComputerAssignment I

ESO 208A: COMPUTATIONAL METHODS IN ENGINEERING

Semester I, 2015-16

Computer Assignment # 1

Due on Thursday, September 10, 2015

Write a program (preferably in Matlab and without using the inbuilt functions) for solving a system of ‘n’ linear equations using (a) Gaussian elimination with partial pivoting and (b) LU Decomposition. Demonstrate the efficiency of the algorithm by taking a numerical example. The program should take input from a file and write the output in another file.