First tip: Rather than using the Dictionary, use NuVoc.

Second tip: learn how to use the dissect tool.

Third tip: understand what "the rank of a verb" means.

I can't figure out your basic wrongthink here but let me point out that j. is a verb that joins two nouns to make a complex noun, while the j in 1j2 is part of the constant notation.

You do NOT need to update J.

Other comments below.

Henry Rich


On 6/30/2017 11:14 PM, Lawrence Wickert wrote:
Hello,  I am a old EE still trying to learn.  I am a real beginner having no 
end of problems with specifying complex numbers.  I am using j64-804 on ubuntu 
12.04.  I am either doing something really stupid or I need to update to 806.  
Updating anything gives me heartburn or worse so I hope it is just my 
misunderstanding of basic principles. Although I have a bad habit of RTFM as a 
last resort I have tried the Dictionary to no avail.  I appreciate any guidance.

    0j(2^0.5)%2
|ill-formed number

    0j((2^0.5)%2)
|ill-formed number

    j.(2^0.5)%2
0j0.707107
NB. Eureaka, OK, I get it!

NB. But wait, not so fast:
    1j.(2^0.5)%2
|ill-formed number
NB. No

    1j(2^0.5)%2
|ill-formed number
NB. Still No

    1+j.(2^0.5)%2
1j0.707107
NB. This works!

The principle is: any word that starts with (numeric or _)must be a valid number.

1j was not a valid number.


Let's try to do something with it:
    k=:(0 1+j.(2^0.5)%2 3 4 0 5)
|length error
|   k=:(0 1    +j.(2^0.5)%2 3 4 0 5)
You are adding a list of 2 numbers to a list of 5 numbers.


NB. Maybe parantheses will help:
    k=:(0 (1+j.(2^0.5)%2) 3 4 0 5)
|syntax error
|   k=:(    0(1+j.(2^0.5)%2)3 4 0 5)
You have
noun noun noun
which is illegal.

NB. This one has to work:
    k=:(0 1j0.7071 3 4 0 5)
    k
0 1j0.7071 3 4 0 5
NB. It does but it can't be the only way to do it.

NB. One last rry:
    g=: 1+j.(2^0.5)%2
    g
1j0.707107
NB. That's nice.

    k=:(0 g 3 4 0 5)
|syntax error
|   k=:(    0 g 3 4 0 5)
NB. This isn't nice.
You have noun noun noun which is illegal.  Try
0 , g , 3 4 0 5


Lost in the high desert of New Mexico, Larry Wickert

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


---
This email has been checked for viruses by AVG.
http://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to