GaussInt - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

GaussInt

  

GInearest

  

the nearest Gaussian integer to a complex number

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GInearest(c)

Parameters

c

-

complex number

Description

• 

The GInearest function returns the nearest Gaussian integer a to the given complex number c, that is, it finds a Gaussian integer a such that the distance between c and a is smallest.

• 

In special cases when there are more than one possible values of a, the one with the smallest norm is chosen.

Examples

withGaussInt:

GInearest3+7I

3+7I

(1)

GInearest12

2I

(2)

See Also

GIissqr

GIsqrt

 


Download Help Document

Was this information helpful?



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