How can I do exponentiation in clojure? For now I\'m only needing integer exponentiation, but the question goes for fractions too.
Use clojure.math.numeric-tower, formerly clojure.contrib.math.
clojure.contrib.math
API Documentation
(ns user (:require [clojure.math.numeric-tower :as m])) (defn- sqr "Uses the numeric tower expt to square a number" [x] (m/expt x 2))