MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: help working with functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60011] Re: help working with functions
  • From: "dkr" <dkrjeg at adelphia.net>
  • Date: Sun, 28 Aug 2005 03:07:50 -0400 (EDT)
  • References: <dep7us$f1s$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In[11]:=
a[0,i_,j_]=0;
a[1,i_,j_]=1;
a[k_,i_,j_]:=a[k-1,i,j]+a[k-2,i,j]+i*j^(k-2);
f[i_,j_,n_]:=Table[a[k,i,j],{k,0,n-1}];

In[15]:=
f[0,4,10]
Out[15]=
{0,1,1,2,3,5,8,13,21,34}


  • Prev by Date: Re: Random sampling of an arbitrary distribution
  • Next by Date: Re: help working with functions
  • Previous by thread: Re: help working with functions
  • Next by thread: Re: help working with functions