Skip to main content

Square

Checks if a number is a square.

Syntax

square?(Integer)

Description

Given an integer n, it is a square if there exists some integer a such that n=a2. If the input is a square returns aa, otherwise, it returns false.

arithmetic.square.calc.png