Tracy -
the leftmost number you supply in each of these examples defines
the size of the window on which to apply the function "]".
Working backwards a bit since I think it's easier to understand,
2 ]\9 7 6
is equivalent to (]9 7),:(]7 6). That is, the function is applied to
(2{.9 7 6), then to (2{.1}.9 7 6), then we run out of 2-wide windows
to which to apply the function, so we stop.
Looking at
1]\9 7 6
it works analogously, equivalent to (]9),(]7),:]6, or applied to
(1{.9 7 6), then to (1{.1}.9 7 6), then to (1{.2}.9 7 6) at which point
we run out of 1-wide windows so we stop.
The initial example you give is slightly puzzling, but, as best I can
figure, the case
0]\9 7 6
returns a result with shape "4 0" because the function is applied to
an initial 0-wide window as well as to three more 0-wide windows
corresponding
to each of the three elements of the right argument. That is, it is applied
to
(0{.9 7 6), then to (0{.1}.9 7 6), then to (0{.2}.9 7 6), and finally to
(0{.3}.9 7 6) at
which point there are no more 0-wide windows.
Hope this helps.
Devon
On 7/1/07, Tracy Harms <[EMAIL PROTECTED]> wrote:
Perhaps some well-informed commentary could spark some
comprehension for me as to why the following
applications of infix (\) have the results they do:
0 ]\ 9 7 6
$0 ]\ 9 7 6
4 0
1 ]\ 9 7 6
9
7
6
$1 ]\ 9 7 6
3 1
2 ]\ 9 7 6
9 7
7 6
$2 ]\ 9 7 6
2 2
3 ]\ 9 7 6
9 7 6
$3 ]\ 9 7 6
1 3
4 ]\ 9 7 6
$4 ]\ 9 7 6
0 4
$5 ]\ 9 7 6
0 5
Sorry to say, I'm at a loss as to the relationship
between input and output, for these. I see a
geometric pattern across x values 1 through 3, but I
can't generalize it.
(Both conjugate (+) and same (]) operate identically
for noncomplex values; I've written these examples
using same.)
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm