Lab1Sol - Lab Assignment 1 Consider the following...

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

View Full Document Right Arrow Icon
Lab Assignment 1 Consider the following continuous function: ( ) cos fx x = 1. For 0:0.1:10 x = , plot a graph of the above function in MATLAB. Print the figure and submit it with the completed assignment. See the Lab1q1.m 2. Derive the second-order Taylor approximation by hand: 2 11 cos( ) ( ) cos( ) cos( ) sin( ) 2 i iii i x f xxx x hh ++ = ≈− Here, 1 () ii hx x + = 3. Open a new m-file and save as “LastNameLab1.m” (e.g., LeeLab1.m). Write an algorithm to get an estimate of (10) f starting from 0 i x = with the step size, 0.1 h = . Plot the graph and submit it
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/14/2011 for the course EAME 250 taught by Professor Lee during the Spring '11 term at Case Western.

Ask a homework question - tutors are online