I was trying to make a class for complex numbers (VB.NET) but then I stumbled upon a problem. How do I define the $mod$ operator for Complex numbers?
First I asked Wolfram Alpha. It didn't help much. (But at least it told me it was possible to define).
Then, I searched Google, which didn't help much either. The most I found was this. Didn't help to clarify.
So I want to ask if any of you know how I could extend the $mod$ operator to the Complex numbers. Any help would be appreciated.
(P.S. I saw this question but I didn't see how the accepted answer answered it. What I want is a general formula for complex numbers.)