On Jan 3, 7:46 pm, vogelrn <voge...@gmail.com> wrote:
> sqrt(a/b) should always be equal to sqrt(a)/sqrt(b) since (a/b)^m =
> a^m/b^m for b != 0.  However, I'm unsure of whether it's the best
> option for ratios because unless both the numerator and the
> denominator are perfect squares, you're going to end up with a float
> anyway.  This is trading an extra sqrt for precision in the relatively
> uncommon situation where both numbers are perfect squares.

*nodsnodsnods*

> As for taking square roots involving complex numbers, I've been
> considering that as well, but I think it might be a bad idea to have
> it as a part of the normal sqrt function.  In the majority of
> situations, taking the square root of a negative number is a bad thing
> and probably shouldn't be allowed.  An alternative sqrt associated
> with complex numbers could be appropriate instead.

I agree.  Perhaps this article will be relevant for those interested
in such a project:

http://www.eecs.berkeley.edu/Pubs/TechRpts/1992/6127.html

mfh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to