Charles Greathouse on Wed, 14 Mar 2012 10:20:17 +0100


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

Re: sqrtint for rationals


Couldn't you just do sqrtint(x\1)?

Charles Greathouse
Analyst/Programmer
Case Western Reserve University

On Wed, Mar 14, 2012 at 5:03 AM, Andreas Enge <andreas.enge@inria.fr> wrote:
> Would it be easy to extend sqrtint to rationals? I need it in my code and
> think I could implement it as floor (sqrt ()); but whether this succeeds
> depends on the floating point precision.
>
> Andreas