![]() ![]() In “radians” (you may remember this from trigonometry class). To help you understand the sine function, consider the following Python program.Īs you can see, the sin function from the math library takes a single parameter. Note that the x axis is given in degrees.įor this lab, we will use the math library to generate the values that The sine function, sometimes called the sine wave, is a smooth, repetitive oscillation that occurs often in many fields including mathematics, physics, and engineering. In this exercise, we will use our turtle to plot a simple math function, the sine wave. Have you ever used a graphing calculator? You can enter an equation, push a few buttons, and the calculator will draw a line. Then you can roughly illustrate waves like this: ĭocument.write(svg(path(go(0,25)+(up()+dn()).Support Runestone Academy Today Plotting a sine Wave ¶ Here's a CDMA illustration where I've used cubic splines for illustrating CDMA concepts. To use this in HTML5, just put it in an svg element FM and QAM Examples You may need to adjust the M command to shift it into view if you increase the amplitude To illustrate AM (or even QAM), just repeat the q command with the new parameters. I find this useful for illustrating modulation in data communication. The intermediate value keeps from skewing the wave.When shifting frequencies, use an intermediate value like 7.5.Each additional 10 0 10 0 produces an additional full wave. ![]() repeats the previous half-wave inverted.20 makes the amplitude of the wave 10.You can illustrate FM by tweaking the period (see below). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |