Post Reply 
(Free42) matrix copy/paste bug
02-10-2018, 06:53 AM
Post: #30
RE: (Free42) matrix copy/paste bug
(02-10-2018 06:15 AM)Werner Wrote:  Why
NUMBER SIGN UNSIGNED_NUMBER IMAGINARY_UNIT
And not
NUMBER NUMBER IMAGINARY_UNIT

Because the latter would allow, say, "2 3i". I think there should always be a + or a - between the real and imaginary parts in this kind of notation.

(02-10-2018 06:15 AM)Werner Wrote:  moreover, it seems IMAGINARY_UNIT must always be preceded by a number, so why does a lone J get interpreted as a complex number?

I goofed and missed that case in my list of accepted formats. The code does, in fact, handle this.
The imaginary unit does not have to be preceded by a number; 1+i and 1-i are valid, and so are i and -i.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(Free42) matrix copy/paste bug - Werner - 02-06-2018, 08:57 AM
RE: (Free42) matrix copy/paste bug - Thomas Okken - 02-10-2018 06:53 AM



User(s) browsing this thread: 1 Guest(s)