Re: REPL prints a ISeq as a list

2009-01-09 Thread vogelrn
Lists -are- sequences (except for the empty list). On Jan 9, 8:32 pm, Greg Fodor wrote: > Hey all, I am just picking up Clojure here for the first time, sorry > about the relative newbie question. One thing I noticed is that the > REPL prints out a sequence as a list, basically eval'ing rest un

Re: Math functions

2009-01-04 Thread vogelrn
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 s