That's great!

On to v0 and v1 ?

    (v0 ,: v1) 10
1  6  31   76  141   226   331   456    601    766  <-- 10 from first sequence
0 _6 _32 _108 _384 _1250 _3456 _8232 _17408 _33534  <-- 10 from second sequence

Have you seen a polynomial-fitting verb for data such as iii0 10 and iii1 10 ?

Did you look at (iii0 + iii1) 10 ?


Raul Miller wrote:
> On Mon, Aug 17, 2009 at 11:41 PM, Kip Murray<[email protected]> wrote:
>>    (iii0 ,: iii1) 10
>> 1 4  7 10  13  16  19  22  25  28  <-- take 10 from first sequence
>> 0 4 20 54 112 200 324 490 704 972  <-- take 10 from second sequence
> 
> iii0 is obvious, since the difference between
> adjacent elements is always 3.
> 
> iii1 is slightly harder, but 2&(-~/\)^:a:shows that it's also
> a polynomial.
> 
> iii0=: 1 3&p.
> iii1=: 0  0 3 1&p.
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to