How to Simulate Sinusoidal Curves in JavaScript
Periodic functions produce an infinite order of sinusoidal curves.
The sine function has the general form
y = asinθ;
and the cosine function has the general form
y = acosθ + c;
where θ is angle in radians and
a is an arbitrary constant that heightens
the curve.