Automatically generate Clojure function proxies for java.lang.Math static methods.
Add this to your
project.clj if you're using Leiningen:
Then, in the namespace you want math functions in:
(ns your-ns (:use [mathemagician :only (abs)])) (abs -3) ;=> 3
Effort has been made to make the functions that
generates fast, but they're still about 5x slower than direct calls to
If you need better performance, you can substitute your
mathemagician function calls for Math method calls.
Copyright (C) 2012 Alan Dipert
Distributed under the Eclipse Public License, the same as Clojure.