TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Function

IsSquare ( elt-fld^rat x ) -> elt-alg^boo, elt-fld^rat

Optional Arguments

Resultselt-ord^rat1 <= Results <= 2

Description

True iff the rational integer x is the square of a rational; if true, the square root of x is also returned.

Examples

IsSquare(4/1); IsSquare(One(Q));
IsSquare(-One(Q));
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group