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! 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) 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) 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. Lost in the high desert of New Mexico, Larry Wickert ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
