[Jprogramming] unexpected behaviour with rank of x:
'robert therriault' via Programming
programming at jsoftware.com
Thu Nov 1 18:48:27 UTC 2018
Any ideas on why I am getting this result? I am running the current version of j807 but this seems to be the same all the way back to J701, which makes me think that there is something that I am missing in the way that rank is applied.
a
0 1 2
3 4 5
1 2 x:"0 _ a NB. this is expected
0 1 2
3 4 5
0 0 0
0 0 0
0 0 0
0 0 0
0 1 0
1 1 0
2 1 0
3 1 0
4 1 0
5 1 0
1 2 x:"0 a NB. this is was unexpected. Shouldn't it be the same as the result of 1 2 x:"0 _ a
0 0
1 0
2 0
3 1
4 1
5 1
2 x:"0 a NB. the constituent parts behave as expected with rank 0
0 1
1 1
2 1
3 1
4 1
5 1
1 x:"0 a
0 1 2
3 4 5
Cheers, bob
More information about the Programming
mailing list