-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oh I just realized:
since python is complaining about j not being known:
*Don't* have a space between 2 and j. 2j is a numeric literal,
which python understands, 2 j is a numeric literal (2) and a name (j),
which python can't understand.
Greetings,
Dear Marcus,
Now I know the reason:
Vector: ( 1 + 4j ) == this doesn't work
Vector: ( 1 + 4j, ) == this work!
So there must have a comma if it is one element.
Thanks.
On Sat, Feb 8, 2014 at 5:28 PM, Marcus Müller mar...@hostalia.de wrote:
-BEGIN PGP SIGNED MESSAGE-
On Saturday, February 8, 2014, Activecat active...@gmail.com wrote:
Dear Marcus,
Now I know the reason:
Vector: ( 1 + 4j ) == this doesn't work
Vector: ( 1 + 4j, ) == this work!
So there must have a comma if it is one element.
Thanks.
Yes, the comma will result in a tuple
Dear Sir,
I am using the built-in block of Vector Source, configured as below:
Output Type = Complex.
Vector = ( 1, 2, 3 )
Then I run the flow graph.
The block sends out 1 + 0i, 2 + 0i, 3 + 0i.
Question:
How to make it sends 1 + 2i ?
(How to configure this at the Vector field?)
Regards,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi activecat,
have you just tried the most intuitive options:
Vector = ( 1 + 2j, 2 + 4.0 * 1j, complex(3,-1) )
all three elements work, since this is just python :)
Greetings,
Marcus
On 08.02.2014 07:28, Activecat wrote:
Dear Sir,
I am using
Dear Marcus,
Thanks, it accepts ( complex(1,2), complex(3,4), complex(5,6) ).
The other two are not accepted, message:
name 'j' is not defined.
Nevertheless, that is good enough.
Thanks.
Regards,
activecat
On Sat, Feb 8, 2014 at 2:38 PM, Marcus Müller mar...@hostalia.de wrote:
-BEGIN