Docsity

4 Unsolved Questions on Computational Methods | AOE 2074, Assignments of Aerospace Engineering

Toggle sidebar
bg1
AOE/ESM 2074
Introduction to Computational Methods
due 19 October 2000
1. Use your least-squares linear fit procedure to approximate the data in the file hw6 1.
Plot the data and the derived linear approximation with appropriate labels. To facil-
itate the file transfer, the data has been saved with the -ascii flag. When you load
hw6 1there will be an array hw6 1with size 2 x 101. The first row in this array is
the list of independent variables, while the second row is the corresponding dependent
variables.
2. Matlab provides a function called polyfit for estimating the coefficients of general
polynomial (user selects the degree). Use the data in the ascii file hw6 2and deter-
mine a best quadratic fit to the data. Again, plot the data and the derived quadratic
approximation with appropriate labels.
3. Use Matlab’s numerical quadrature procedure quad to approximate the definite integral
I=2
1
t2cos(t)dt
4. Use Matlab’s numerical quadrature procedure quad to approximate the definite integral
I=1
tsin(1/t)dt .
Do this for =.1. Study what happens as →0.
1

Partial preview of the text

Download 4 Unsolved Questions on Computational Methods | AOE 2074 and more Assignments Aerospace Engineering in PDF only on Docsity!

AOE/ESM 2074

Introduction to Computational Methods

due 19 October 2000

  1. Use your least-squares linear fit procedure to approximate the data in the file hw6 1. Plot the data and the derived linear approximation with appropriate labels. To facil- itate the file transfer, the data has been saved with the -ascii flag. When you load hw6 1 there will be an array hw6 1 with size 2 x 101. The first row in this array is the list of independent variables, while the second row is the correspondingdependent variables.
  2. Matlab provides a function called polyfit for estimatingthe coefficients of general polynomial (user selects the degree). Use the data in the ascii file hw6 2 and deter- mine a best quadratic fit to the data. Again, plot the data and the derived quadratic approximation with appropriate labels.
  3. Use Matlab’s numerical quadrature procedure quad to approximate the definite integral

I =

∫ (^2)

1

t^2 cos(t) dt

  1. Use Matlab’s numerical quadrature procedure quad to approximate the definite integral

I =

∫ (^1)



t sin(1/t) dt.

Do this for  = .1. Study what happens as  → 0.