mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
27 lines
391 B
Plaintext
27 lines
391 B
Plaintext
NAME
|
|
isqrt - integer part of square root
|
|
|
|
SYNOPSIS
|
|
isqrt(x)
|
|
|
|
TYPES
|
|
x nonnegative real
|
|
|
|
return nonnegative real
|
|
|
|
DESCRIPTION
|
|
Return the greatest integer n for which n^2 <= x.
|
|
|
|
EXAMPLE
|
|
> print isqrt(8.5), isqrt(200), isqrt(2e6), isqrt(2e56)
|
|
2 14 1414 14142135623730950488016887242
|
|
|
|
LIMITS
|
|
x > 0
|
|
|
|
LIBRARY
|
|
NUMBER *qisqrt(NUMBER *x)
|
|
|
|
SEE ALSO
|
|
sqrt, iroot
|