GaussInt - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Group Theory : Numbers : Integer Functions : Gaussian Integers : GaussInt/GIsqrt

GaussInt

 GIsqrt
 Gaussian integer square root

 Calling Sequence GIsqrt(x)

Parameters

 x - Gaussian integer

Description

 • The GIsqrt function computes a Gaussian integer approximation to the square root of x. The approximation is exact for perfect squares; the distance between x and its approximation is less than or equal to $\frac{1}{2}\sqrt{2}$ otherwise.

Examples

 > $\mathrm{with}\left(\mathrm{GaussInt}\right):$
 > $\mathrm{GIsqrt}\left(-5+12I\right)$
 ${2}{+}{3}{}{I}$ (1)
 > $\mathrm{GIsqrt}\left(7+9I\right)$
 ${3}{+}{I}$ (2)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam