This is the code I used to solve the rigid body problems of chapters 4 and 5. There is also some chapter 3 stuff in here.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Rigid Body Solutions

Manually solving the problems in Chapter 4 can be tedious and error-prone, moreover it takes too damn long (especially when you're solving all of them). To get around this I wrote some code; it was much more fun to write the code than to punch all that in the calculator, also having the programmatic output allowed me to use it as a teleprompter.

Using this code

This was written in Python2 (2.7.3 probably), and it uses NumPy and Sympy pretty heavily to do the numerical and symbolic manipulation, some codes use Matplotlib to make pretty pictures. All of those libraries are inlcuded in (SciPy)[]. So you will need to install that before using this code. Python + SciPy are a really great (and free!) replacement for MATLAB, so getting comfortable working with them could be a real benefit to your career!

There are two libraries included with this code and These allow for calculations about rigid body motion and multiple degree of freedom motion respectively. I originally chose to not release these only because it would be really easy to cheat and to try to pass of my code as your code on assignments and projects. Please don't do this. Use my code to check your work and to learn how to leverage software to make your life easier.

The files of the form are all solutions to the problem implied by the numbers. These problem numbers are in reference to the 10th edition of the textbook.

Enjoy, and pay it forward!

Work to be done

As it is I consider this work complete, however for this code to be truly useful for a student it would be more verbose (and maybe better documented). If I were to write this code today I would use Python3, so I would be open to somebody porting it (which should really be pretty trivial). If you want to do this work I would be happy to make you a contributor.


If you find a bug or feel like you can add to this repo (perhaps with a library for solving other types of mechanics problems) then I would be happy to include it! Please send your pull requests!