Hi,
I am getting unexpected results with my favorite verb
- e. I have 2 parameters, p1 and p2 which look
identical - so I expect p1 e. p2 to return 1s. But I
get all 0s.
The transcript of my session follows:
((9!:12);(9!:14)) ''
+-+---------------------+
|5|j504/2005-03-30/13:35|
+-+---------------------+
p1 ,: p2
12764 23608 69514 69538 94548 103028 103030 103038
103077 103092 103106 116138 116158 116193 116216
120335
12764 23608 69514 69538 94548 103028 103030 103038
103077 103092 103106 116138 116158 116193 116216
120335
p1 -: p2
1
p1 = p2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
NB. expecting all 1s below.
p1 e. p2
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
NB. explicitly specify rank, works as expected
p1 e."0 _ p2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
NB. Is it something to do with the shape of p1,p2?
p1 ([EMAIL PROTECTED];(3!:0)@[;(3!:0)@];[EMAIL PROTECTED]) p2
+--+-+-+--+
|16|4|4|16|
+--+-+-+--+
((i.16){p1) e. (i.16){p2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
NB. must be something about p1, p2
p3 =. 12764 23608 69514 69538 ...
p4 =. 12764 23608 69514 69538 ...
p3 e. p4
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
p3 =. p1
p4 =. p2
p3 e. p4
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm