Physcalc is a neat mathematical calculator that does conversions from many different units in many forms, and is extremely flexible as far as specifying math problems go. You can also add your own types of conversions.