numlib::issqr
-- test for perfect
squaresnumlib::issqr
(a)
returns TRUE
if a
is the square of an integer, and FALSE
otherwise.
numlib::issqr(a)
a |
- | an integer |
numlib::issqr
returns TRUE
, FALSE
, or the unevaluated call.
numlib::issqr
returns the function call with evaluated
argument if a
is not a number.361 is the square of 19:
>> numlib::issqr(361)
TRUE
362 is not a square:
>> numlib::issqr(362)
FALSE
Negative integers are not squares:
>> numlib::issqr(-361)
FALSE