|
From: | Marcus D. Leech |
Subject: | Re: complex numbers in GRC missing documentation? |
Date: | Thu, 21 Oct 2021 17:32:23 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 2021-10-21 5:02 p.m., Jim Melton wrote:
I had a very confusing conversation with a co-worker where he was describing complex numbers as "j + 0.00001". I had no referent for using "j" to represent "sqrt(-1)". Apparently Matlab uses "j", Electrical Engineers use "j" (because "i" is current), and now I learn that Python supports it as well. I like "complex(0.5,0.5)" as much less ambiguous. Of course, once you know about "j" it's easy to use...
Math people use "i", a lot of the rest of the world use "j".RF engineers, in particular, refer to complex impedance using the "j" notation. For example an ideal impedance for most RF circuits is 50+j0 ohms.
Now in a programming language, there are syntactic pressures that force you to move the "j" to the other side of the operator.
50+J0 would in most languages be interpreted as an expression involving a scalar constant (50) and a variable called J0.
So: 50+0j
[Prev in Thread] | Current Thread | [Next in Thread] |