concept sinusoid in category python
appears as: sinusoid, sinusoids, sinusoids

This is an excerpt from Manning's book Math for Programmers: 3D graphics, machine learning, and simulations with Python.
As a first example, let’s create a sinusoid with a frequency of 2, meaning a function shaped like a sine graph but repeating itself twice between zero and one. The period of the sine function is 2𝜋, so by default, it takes 4𝜋 units to repeat itself twice (figure 13.12).