Solution Review: Harmonographs
Solution review to the harmonographs exercise.
We'll cover the following...
We'll cover the following...
Solution 1 #
Explanation #
-
In lines 5 - 6, we have defined the function
pendulum()and set the default values forA,f,p, andd. -
In line 9, we have created an array for time
t. -
In line 10, we have used custom arguments for the
pendulum()function to generate data for a pendulum moving along the x-axis. -
In lines 13 - 14, we are plotting the motion of the pendulum
x_tagainst timet.
Solution 2
We have to plot the following equations:
...