the nearest Gaussian integer to a complex number
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.
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.