Fixed an error in an equation

This closes #50.