

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Final Exam_B Material Type: Exam; Professor: Cliff; Class: Computational Methods; Subject: Aerospace and Ocean Engineerin; University: Virginia Polytechnic Institute And State University; Term: Fall 2000;
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


This is a closed-book examination. Please turn in all your work and this question sheet.
i) c = b ∗ a ii) c = a\b′ iii) c = 1./a
exp(z) = 1 + z +
z^2 2!
z^3 3!
Write a Matlab script .m file that will ask the user for a value of z (possibly complex), ask the reader for a (positive) tolerance and sum the series until the next term (the first term not included in the sum) is smaller (in modulus) than the prescribed tolerance.
time = 123.4, velocity= 456.7, density = 1. velocity = 470.2, , density= 1.18, time= 125.
To capture this information you will use the Matlab fgetl command to assign a line of data to a character array str input. You are to provide a Matlab code segment that will find the word density in this array and then find the next equal sign (=). Your code should result in the location within the character array str input that has the desired equal sign. Provide a brief discussion of what each line in your code segment is doing.