isqrt returns the integer part (floor) of a square root.
On Jul 17, 7:33 am, Santanu Sarkar
wrote:
> Thank you.
>
> 2009/7/16 Marshall Hampton
>
>
>
>
>
> > I'm not quite sure what you want, but for example
>
> > sage: B = sqrt(1000)
> > sage: floor(B)
> > 31
>
> > would give you the integer p
Thank you.
2009/7/16 Marshall Hampton
>
> I'm not quite sure what you want, but for example
>
> sage: B = sqrt(1000)
> sage: floor(B)
> 31
>
> would give you the integer part (rounded down since its floor). The
> round() function might be what you want instead (round(B) is 32.0).
>
> -Marshall
I'm not quite sure what you want, but for example
sage: B = sqrt(1000)
sage: floor(B)
31
would give you the integer part (rounded down since its floor). The
round() function might be what you want instead (round(B) is 32.0).
-Marshall Hampton
On Jul 16, 10:05 am, Santanu Sarkar
wrote:
> Supp