Fourier Series: Using The Derived Formulas for Determination of Fourier Foefficients

First we will "do it the hard way" and write short programs that evaluate Fourier coefficients; then we will demonstrate how to make use of built-in functions in Mathematica's FourierTransform package…

Define functions based on the formulas derived for the fourier amplitudes

The constant term:

"index_65.gif"

A function that defines each even amplitude individually (this is not very efficient, it would be better to evaluate the integral once and use that result)

"index_66.gif"

Define the zeroth odd term as zero for symmetry with the even terms:

"index_67.gif"

"index_68.gif"

A function to create a vector of amplitudes for the odd terms and one for the even terms

"index_69.gif"

"index_70.gif"


Created by Wolfram Mathematica 6.0  (24 October 2007) Valid XHTML 1.1!