HW9 - Homework #9: Functions 2 Reading: 5.4, 5.5 Homework:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework #9: Functions 2 Reading: 5.4, 5.5 Homework: This assignment will be done entirely in MATLAB. When asked for a “program” you should create an m-file (script) and any functions that are asked for. Be sure to turn-in the completed script and functions along with any runs you are asked for. In addition, you need a flow diagram for each program. Turn problems in IN THE ORDER THEY ARE ASSIGNED. Each problem needs to be labeled so the TA can find your work. Do the following exercises from your textbook 1. 5.24 In addition to what is asked for in the problem, generate a plot that shows the calculated derivative and cos( x ) on the same plot. 2. 5.31 You should make the gravitational constant, G , a global variable. Write a MATLAB function that 3. Calculates the value of cos( x ) using the Taylor Series expansion cos( x ) = 1 - x 2 2! + x 4 4! - x 6 6! + ... The Taylor Series should be used as long as the individual calculated term is greater than 1 × 10 - 10 . In addition, you should create a function that calculates
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2009 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas at Austin.

Page1 / 2

HW9 - Homework #9: Functions 2 Reading: 5.4, 5.5 Homework:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online