Implemented gasmin(x). Fixes #2.