On Dec 22, 8:08 am, Stuart Sierra <the.stuart.sie...@gmail.com> wrote: > Yeah, I love (expt 2 64) as a Common Lisp parlor trick. I've thought > about trying to write a Clojure "pow", but I don't know enough about > the algorithms involved. How do you compute something like 25/9 to > the power of 3/2?
That's much harder than (sqrt <some-big-integer-that's-a-perfect- square>), but there have been libraries written (in Lisp, no less!) to do just that and more. See, for example, "Exact real computer arithmetic with continued fractions," J. E. Viullemin, INRIA Report 760, Nov 1987. 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 -~----------~----~----~----~------~----~------~--~---