On Mar 12, 2009, at 10:54, Konrad Hinsen wrote: > Building a math environment is one of my long-term goals in working > with Clojure, and my recent experiments with types and interfaces are > partly motivated by this. What I have in mind is an infrastructure > consisting of a few well-designed interfaces, types, and macros, that > makes it possible to plug in functionality such as interval > arithmetic, automatic derivatives, arithmetic on polynomials, > physical units, etc., but also symbolic manipulations of fomulas.
Since there does seem to be some interest, I have just added my first experimentations on this topic to clojure.contrib. Look at clojure.contrib.generic.arithmetic for multimethods that make it possible to define the basic arithmetic operations + - * / for any data type. But be aware that this is highly experimental and very likely to change in the future. Konrad. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---