I just checked in clojure.contrib.complex-numbers, a complex number library. For the moment it implements only comparison and arithmetic, but I intend to add maths functions later.
Complex numbers are represented by struct maps with two keys, :real and :imag. The real and imaginary parts can be any number kind (or, in fact, anything for which implementations of clojure.contrib.generic exist). There is a specialized subtype representing pure imaginary numbers, which eliminates many of the useless operations with zero that complex libraries often suffer from. Feedback is welcome! 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 -~----------~----~----~----~------~----~------~--~---