Documentation Center

  • Trial Software
  • Product Updates

numlib::issqr

Test for perfect squares

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

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?