Homework Set 2 with Solution - Computational Methods | ESM 2074, Assignments of Engineering

Material Type: Assignment; Professor: Cliff; Class: Computational Methods; Subject: Engineering Science and Mechanics; University: Virginia Polytechnic Institute And State University; Term: Unknown 1989;

Typology: Assignments

Pre 2010

Uploaded on 02/13/2009

koofers-user-na5
koofers-user-na5 🇺🇸

9 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
AOE/ESM 2074
H.W. Set 2 - Solution
2. A script file to generate the partial sum at 101 equally spaced points is available as
hw 2 2.m. This was run from the Command Window. The resulting diary is
hw_2_2
How many terms in the Fourier series ? : 4
plot(t,f_nm,’-k’)
hold on
hw_2_2
How many terms in the Fourier series ? : 8
plot(t,f_nm,’--k’)
legend(’n=4’,’n=8’)
grid on
title(’Fourier Approximation’)
xlabel(’Time’)
ylabel(’Partial Sum’)
diary off
The figure is included here.
1
pf2

Partial preview of the text

Download Homework Set 2 with Solution - Computational Methods | ESM 2074 and more Assignments Engineering in PDF only on Docsity!

AOE/ESM 2074

H.W. Set 2 - Solution

  1. A script file to generate the partial sum at 101 equally spaced points is available as hw 2 2 .m. This was run from the Command Window. The resulting diary is

hw_2_ How many terms in the Fourier series? : 4 plot(t,f_nm,’-k’) hold on hw_2_ How many terms in the Fourier series? : 8 plot(t,f_nm,’--k’) legend(’n=4’,’n=8’) grid on title(’Fourier Approximation’) xlabel(’Time’) ylabel(’Partial Sum’) diary off

The figure is included here.

(^00) 0.5 1 1.5 2 2.5 3 3.

1

2

3

3.5 Fourier Approximation

Time

Partial Sum

n=4n=

Figure 1: Fourier Approximation of a Sawtooth Function

  1. A script file to generate the deflections is available as hw 2 3 .m. This was run from the Command Window. The result is

hw_2_ The deflection vector is:

x =