On Sat, Jan 3, 2009 at 7:06 PM, Mark H. <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
