Write code to calculate acceleration, angular velocity, and angular acceleration.