Added more utility functions.
Added code from Alan Dipert's project "mathemagician".

Revision from which this was copied:
  https://github.com/alandipert/mathemagician/blob/7ee5e2d8b67490f6cd8ea23f0da06ae8038dc5c7/src/mathemagician.clj