numlib::issqr -- test for perfect
squares
Introductionnumlib::issqr(a) returns TRUE
if a is the square of an integer, and FALSE otherwise.
Call(s)numlib::issqr(a)
Parametersa |
- | an integer |
Returnsnumlib::issqr returns TRUE, FALSE, or the unevaluated call.
Related
Functions
Detailsnumlib::issqr returns the function call with evaluated
argument if a is not a number.
Example
1361 is the square of 19:
>> numlib::issqr(361)
TRUE
Example
2362 is not a square:
>> numlib::issqr(362)
FALSE
Example
3Negative integers are not squares:
>> numlib::issqr(-361)
FALSE