a little elisp code to drive the magma online calculator