Angles
An angle measures how far you turn. A full turn is 360°, or 2π radians. One radian is the turn whose arc is as long as the radius, about 57.3°. So 180° is π, 90° is π/2 and 45° is π/4.
The unit circle has radius 1 and its centre at the origin (0, 0). Start at the point (1, 0) and turn counterclockwise by θ. Every angle lands on exactly one point P of the circle, and a full turn, 2π, brings you back.
Sine and cosine
Drop a line from P straight down to the x-axis. The flat leg is cos θ, the x coordinate of P. The upright leg is sin θ, its y coordinate. At θ = π/4 the legs are equal: both are √2/2 ≈ 0.707.
The two legs and the radius make a right triangle whose long side is 1. Pythagoras says cos²θ + sin²θ = 1² = 1, for every angle θ. At π/4: 0.5 + 0.5 = 1. That is why P always stays on the circle.
Keep turning. At 3π/4 (135°) P is left of the y-axis, so cos θ ≈ −0.707 while sin θ stays +0.707. At 5π/4 both are negative; at 7π/4 only sin is. The signs tell you which quarter P is in.
Going back, you know P's coordinates and want θ. The ratio y/x = tan θ cannot tell (−1, 1) from (1, −1): both give −1. atan2(y, x) checks both signs: atan2(1, −1) = 3π/4 ≈ 2.356 rad, which is 135°.
Waves
Now let θ grow steadily and plot P's height, sin θ, against θ. One full turn, 0 to 2π, draws one cycle: up to 1 at π/2, back to 0 at π, down to −1 at 3π/2, and back to 0 at 2π.
cos θ draws the same wave, a quarter turn earlier. It starts at its peak, 1, where sine starts at 0, so cos θ = sin(θ + π/2). Engineers say cosine leads sine by 90°, or π/2 radians.
In a circuit
An AC source makes v(t) = Vm sin(ωt), with peak Vm = 10 V and frequency f = 50 Hz. The angle ωt grows 2π per cycle, so ω = 2π × 50 ≈ 314.16 rad/s. One cycle takes 1/50 s = 20 ms.
At t = 2.5 ms the angle is ωt = 314.16 × 0.0025 ≈ π/4. So v = 10 × sin(π/4) ≈ 7.07 V: the 0.707 from the unit circle, scaled by 10. An arm of length Vm turning at ω is a rotating phasor.
Try it in the Python prompt
;; step 1/10 · Angles in radians >>> from math import * >>> radians(45), pi / 4 (0.7853981633974483, 0.7853981633974483) >>> degrees(1) # one radian in degrees 57.29577951308232 >>> degrees(2 * pi) 360.0
Python's math.sin and math.cos take radians, not degrees. Convert with math.radians(45) and math.degrees(pi). One radian is 180/π ≈ 57.2958°. Floating point is close, not exact: sin(pi) gives about 1.2e-16 instead of 0, because pi itself is rounded. Compare results with math.isclose, not ==.