Re: clojure and maths

2011-07-06 Thread Ken Wesson
On Wed, Jul 6, 2011 at 4:23 AM, Konrad Hinsen wrote: > On 6 Jul, 2011, at 9:58 , Ken Wesson wrote: > >> Multimethods of course are too slow for core arithmetic functions but >> we have protocols now and when a protocol is implemented inline in a >> datatype it runs as efficiently as any Java metho

Re: clojure and maths

2011-07-06 Thread Konrad Hinsen
On 6 Jul, 2011, at 9:58 , Ken Wesson wrote: > I wonder if generic math should become part of core for 1.4? Not really the most important question for now - what matters more is how generic math should best be implemented in Clojure. I don't think generic math should become the default (i.e. re

Re: clojure and maths

2011-07-06 Thread Ken Wesson
On Wed, Jul 6, 2011 at 3:14 AM, Konrad Hinsen wrote: > For a Clojure approach to this specific problem, see > >        http://clojure.github.com/clojure-contrib/complex-numbers-api.html > > which is based on the generic arithmetic from > >        http://clojure.github.com/clojure-contrib/generic.a

Re: clojure and maths

2011-07-06 Thread Konrad Hinsen
On 6 Jul 2011, at 06:35, jlk wrote: I've been playing around with math in clojure lately and have run up against a few hurdles that I'm not sure how to overcome, any help would be appreciated! Mostly I've been trying to use the apache commons math library (http://commons.apache.org/math/), but

clojure and maths

2011-07-05 Thread jlk
Hello I've been playing around with math in clojure lately and have run up against a few hurdles that I'm not sure how to overcome, any help would be appreciated! Mostly I've been trying to use the apache commons math library (http://commons.apache.org/math/), but have been hitting similar proble