You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q: Why define Zi, rather than using Python's built in complex numbers?
A: We want to exactly represent arbitrarily large Gaussian integers. Python's built-in complex type uses two floating point numbers, and Python floats are limited in size, whereas its integers are not.
Consider the following calculation, where x & x1 are ints, and y & y1 are floats:
In [1]: x = 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111