|
From: | Marcus D. Leech |
Subject: | Re: [Discuss-gnuradio] multiply const block |
Date: | Sun, 05 Aug 2018 22:32:42 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 08/05/2018 04:21 PM, Paul Boven wrote:
If you tend to think in degrees, I often form complex rotation constants thusly:Hi Linda, On 08/04/2018 10:42 PM, Linda20071 wrote:Can the constant be a complex number? For example, Can I set the constant to be 1.0*j, which should rotate the constellation graph by 90 degrees?Yes, it can be a complex number. If you hover with the mouse over the field, it even says it expects a complex vector.The notation would be: a+bj, so in your case, simply 1j will suffice. So without the '*'.Regards, Paul Boven.
(after importing math) complex( math.cos(math.radians(d)), math.sin(math.radians(d)) ) With 'd' in degrees
[Prev in Thread] | Current Thread | [Next in Thread] |