Lesson 14 of 15

Torque

Torque

Torque is the rotational analogue of force. It measures how effectively a force causes rotation about a pivot:

τ=Frsin(θ)\tau = F r \sin(\theta)

  • FF — applied force (N)
  • rr — moment arm — distance from pivot to point of application (m)
  • θ\theta — angle between force vector and the moment arm
  • τ\tau — torque (N·m)

When is torque maximum?

When θ=90°\theta = 90° (force perpendicular to the arm): sin(90°)=1\sin(90°) = 1, so τ=Fr\tau = Fr.

Pushing a door at the handle (far from hinge, θ=90°\theta = 90°) is far more effective than pushing near the hinge or pushing at an angle.

Newton's 2nd Law for Rotation

τnet=Iα\tau_{\text{net}} = I \alpha

where II is the moment of inertia and α\alpha is angular acceleration — the rotational analogue of F=maF = ma.

Examples

FF (N)rr (m)θ\thetaτ\tau (N·m)
10290°20.0000
10230°10.0000 (sin30°=0.5\sin 30° = 0.5)
50390°150.0000
1000.545°35.3553

Your Task

Implement torque(F, r, angle_deg) returning torque in N·m.

TCC compiler loading...
Loading...
Click "Run" to execute your code.