flamingpy.cv.gkp.integer_fractional¶
- flamingpy.cv.gkp.integer_fractional(x, alpha)[source]¶
Obtain the integer and fractional part of x with respect to alpha.
Any real number x can be expressed as n * alpha + f, where n is an integer, alpha is any real number, and f is a real number such that |f| <= alpha / 2. This function returns n and f.
- Parameters
x (float or array) – real numbers
alpha (float) – alpha from above.
source/api/flamingpy.cv.gkp.integer_fractional
Download Python script
Download Notebook
View on GitHub