On Sat, Jan 3, 2009 at 7:06 PM, Mark H. <mark.hoem...@gmail.com> wrote: > Would you > find a sqrt that returns complex numbers for negative inputs (it would > be the appropriate branch of the sqrt function in order to make it > single-valued) useful?
Ideally I'd also like that, but since complex numbers aren't part of Clojure's numeric tower, and since there isn't one official Java implementation of complex numbers (as far as I know), I just do what Java's sqrt function does (i.e., return NaN). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---