Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine if a number is a Gaussian integer
Zero is a Gaussian integer:
| In[1]:= |
| Out[1]= |
Any integer is a Gaussian integer:
| In[2]:= |
| Out[2]= |
A complex number with integer real and imaginary parts is a Gaussian integer:
| In[3]:= |
| Out[3]= |
Non-integer numbers are not Gaussian integers:
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License