Charles Greathouse on Mon, 16 Nov 2009 06:30:24 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

usqrtsafe isn't


In writing a program using the Pari library today I was able to trace
a problem to usqrtsafe.  In particular,
usqrtsafe(18446744073709551615) = 4294967296
but 4294967296^2 = 18446744073709551616 > 18446744073709551615.

Charles Greathouse
Analyst/Programmer
Case Western Reserve University