Mechanical System Analysis:
Create a program that analyzes the forces and torques acting on a mechanical system composed of interconnected rigid bodies. Users should be able to define the geometry, mass distribution, and initial conditions of each body. Implement algorithms to calculate the forces and torques at each time step and simulate the dynamic behavior of the entire system.