Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

numlib::issqr

Test for perfect squares

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

numlib::issqr(a)

Description

numlib::issqr(a) returns TRUE if a is the square of an integer, and FALSE otherwise.

Examples

Example 1

361 is the square of 19:

numlib::issqr(361)

Example 2

362 is not a square:

numlib::issqr(362)

Example 3

Negative integers are not squares:

numlib::issqr(-361)

Parameters

a

An integer

Return Values

numlib::issqr returns TRUE, FALSE, or the unevaluated call.

See Also

MuPAD Functions

Was this topic helpful?