Raul Miller wrote:
> On 10/14/07, John Randall <[EMAIL PROTECTED]> wrote:
>> Roger Hui wrote:
>> On this subject, I have never quite understood the domain of d. 1 . For
>> example:
>>
>> f=:***:
>> f i:5
>> _25 _16 _9 _4 _1 0 1 4 9 16 25
>> (f d.1) 2
>> |domain error
>> | (f d.1)2
>
> Worth noting:
> d=:("0) (D.1)
> f d 2
> 4
>
Now I'm completely baffled:
f=:***:"0
(f d. 1) 2
|domain error
| (f d.1)2
(f D. 1) 2
4
The Dictionary says
u d. n is like u D. n except that u is treated as a rank-0 function.
I would have thought that if u actually was a rank-0 function, d. and D.
would have the same effect.
Best wishes,
John
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm