Question: Now that you have a basic grasp on loops, let's apply it to a Fourier Series. Recall that a square wave can be broken down
Now that you have a basic grasp on loops, let's apply it to a Fourier Series. Recall that a square wave can be broken down into a Fourier Series. Using the Fourier Series equation for a square wave, write a loop to plot the series for n = 1...3, n = 1...9, and n = 1...49. Does the higher n value make the wave look more square? Assume L = 0.01 (half the period). Hint: if you initialize your function f(x) to zero before the loop, you can increase it as a running sum using f(x) = f(x) + new term
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
