To simplify the code for a permutation index:
?~!3
5 0 3 2 1 4
#?~!10
3628800
#?~!15 NB. Too many numbers.
|out of memory
| # ?~!15
Skip Cave
Cave Consulting LLC
On Mon, Jan 11, 2016 at 9:17 AM, Roger Hui <[email protected]> wrote:
> Use extended precision integers.
>
> ? !21
> |domain error
> | ?!21
>
> ? !21x
> 36282724980122910689
>
>
>
>
> On Mon, Jan 11, 2016 at 2:22 AM, Eddie Bracho <[email protected]> wrote:
>
>>
>> (? ! 21)
>>
>> |domain error
>>
>> | ( ?!21)
>>
>>
>>
>> Is this intended behavior? I'm trying to shuffle an array by providing a
>> random permutation to Anagram (A.), but this limitation does not allow me
>> to shuffle arrays with more than 20 elements.
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm