Saturday, 19 August 2017

Cos Roll


Cos Roll
Rolling a circle in a circle to draw a cosine wave

Work by Matthew Henderson
Code: https://pastebin.com/w1GuX3XC

#math #science #cosine #coding

3 comments:

  1. So you Co-Sign a contract to get the ball rolling.

    ReplyDelete
  2. There is a simpler way: choose a point on a circle and roll the circle on a straight line: the point will draw a sinusoid.
    In fact it's the projection of the point on an orthogonal axis moving alongside with the circle that draws the curve and the angle of the line from the center of the circle to the point is the phase, starting from 0 when the point is at the top of the circle and measured in radians. 2π radian for 1 full rotation equivalent to 1 period of the sinusoid.

    ReplyDelete