#haskell - Wed 14 Mar 2007 between 01:35 and 01:40

NY Lost Funds



nmessengerI was flabbergasted when I learned that evaluation order for function arguments at the callsite was unspecified.
nornagonPastorn: fromIntegral
PseudonymPastorn: Either you go through a Double, or you roll your own/grab a library.
Pastornnornagon: is there some way to not do that? cheating?
nornagonnot really, as far as I know
ailndxPseudonym: only that is much bigger, most c code is also valid in c++
hpasteThe appropriate unification of architecture and congestion control has investigated e-business, and current trends suggest that the analysis of thin clients will soon emerge. In fact, few biologists would disagree with the investigation of rasterization, which embodies the key principles of e-voting technology.
nornagon:t sqrt
lambdabotforall a. (Floating a) => a -> a
nornagon@instances Floating
lambdabotDouble, Float
naraindoesn't make sense to take the sqrt of an int and expect an int back, does it?
sorearglguy: ping
nmessenger> let sqrti = round . sqrt . fromIntegral in sqrti 17
lambdabot4
sorearthat you?
glguysorear: :)
rtI would anticipate that integer sqrt returns the largest n such that n*n <= the number.
Calehpaste is spewing quackery now?
sorearglguy: looks like a spammer's dissociator
roconnoran integer square root ought to be added to the haskell libraries, it already exists in GMP
as I understand
glguyhttp://pdos.csail.mit.edu/scigen/
lambdabotTitle: SCIgen - An Automatic CS Paper Generator
narainGMP?
rti've been having fun with gmp a lot lately.
Pseudonym?where+ isqrt http://andrew.bromage.org/darcs/numbertheory/Math/Util.hs
lambdabotDone.
PseudonymYes, you could probably also add a GMP binding.
rtused it to implement the B-B-P algorithm for hex digits of pi, and computed the billionth hex digit of pi.
(took about three hours)
PseudonymNote that my version is optimised for insanely large square roots.
narainGMP? is that the bignum library?
sorearPseudonym: have you seen my binding to mpn_fib_ui?
rtgmplib.org
Pseudonymsorear: Yeah.
roconnornarain: GMP is the gnu multiprecision library. It is what GHC uses to implement integers.
PseudonymVery cute.
rayhey, cool! scigen included my name in one of the citations as well as as an author
that's nifty

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 123 130 

IrcArchive

NY Lost Funds