Is there way to perform arbitrary precision exponentiation in Clojure? I've tried Math/pow and the expt function from clojure.math.numeric-tower, but both will only return limited precision. For example:
(with-precision 100 (expt 2 1/2))
=> 1.4142135623730951
How do I get more digits?
sqrt(2)can't be expressed as a rational number (as a fraction of two finite numbers). Do you want a lazy list of digits? - Dmytro Sirenko