{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# h07-3 - actual function Consider the fourier basis e inx...

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

CIS6930/4930 Intro to Computational Neuroscience Fall 2007 Home Work Assignment 3: Due Thursday 10/18/07 before class 1. Consider the following function over the range [0 , 1] f ( x ) = - 2 × x if x [0 , 1 3 ] f ( x ) = 1 if x ( 1 3 , 2 3 ) f ( x ) = 0 if x [ 2 3 , 1] Note that the function is such that 1 0 f ( x ) dx = 0 First translate and scale uniformly the domain of the fuction so that it now lies on [ - π, + π ] . All future references to f ( x ) is this scaled and translated version. Your goal will be to find an approximation of this function as a fourier series, and show the graphs of successive approximations overlayed on the
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: actual function. Consider the fourier basis e inx for n =-N, . .., + N , and the corresponding sum + N X n =-N c n e inx Calculate the values of c n by numerically approximating the integral Z + π-π f ( x ) e-inx dx , that is, by dividing the range [-π, + π ] , into small intervals and approximating the integral as a sum. Show graphs of how well f ( x ) is approximated by overlaying the series over f ( x ) for various values of N (for example, N = 5 , 10 , 20 , 50 ). 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online