ComputerAssignment II

Embed Size (px)

DESCRIPTION

assignment 2

Citation preview

  • ESO 208A: COMPUTATIONAL METHODS IN ENGINEERING

    Semester I, 2015-16

    Computer Assignment # 2

    Due on Thursday, October 15, 2015

    Write programs (preferably in Matlab but without using the inbuilt functions or in C) to generate (i) Lagrange polynomial and (ii) cubic spline for a given data set (n data points). The program should take input from a file and write the output in another file. For cubic spline, use (a) direct method and (b) curvature-based formulation utilizing Thomas algorithm for solving the system of equations. Also, keep options for different boundary conditions (i.e., natural spline, parabolic runout spline). Submit by 5pm, Oct 15, 2015 or before

    A zip file (named as yourRoll.zip) containing 1. Readme.txt to help in understanding the files 2. All codes, input and output files

    Hard copy of all files.