Square root of integers #
This file defines the square root function on integers. Int.sqrt z
is the greatest integer r
such that r * r ≤ z
. If z ≤ 0
, then Int.sqrt z = 0
.
IsSquare
can be decided on ℤ
by checking against the square root.
This file defines the square root function on integers. Int.sqrt z
is the greatest integer r
such that r * r ≤ z
. If z ≤ 0
, then Int.sqrt z = 0
.
IsSquare
can be decided on ℤ
by checking against the square root.