The wrapping function is used to define the sine and cosine functions. W(t) is the point where (1,t) winds up when the line x=1 is wrapped around the unit circle without slipping or stretching.
This version has the following advantages:
[list]
[*] There are no restrictions on the size of t or its sign. This version works when the value of t is positive, negative, bigger than 2π, whatever.
[*] The parameter t can be viewed as radians, rational multiples of pi (with small denominators) or degrees. In radians, it is easy to stop on integers. In multiples of π, it is easy to stop at multiple of π/6. In degrees, the radian measure is also given, but the stopping behavior is the same as multiples of pi.
[/list]