MathGroup Archive 2007

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

Search the Archive

Re: simple sequence problem


x[1]=1;
x[n_]:=Block[{},Cos[x[n-1]];
Table[x[k],{k,1,30}]//N;
ListPlot[%];

traz wrote:
> Hi, this might be a silly question, but how do you do this in mathematica.
> 
> x1 == Cos[1];
> x2 == Cos[x1];
> x3 == Cos[x2];
> 
> and so on ... ... so basically x(n)= Cos[x(n - 1)]
> 
> I want to plot n against x(n). How do you do the code for this type of sequence in mathematica?
> 
> 



  • Prev by Date: Is it possible to install the Workbench on a cluster
  • Next by Date: Re: Slots & Ampersands
  • Previous by thread: simple sequence problem
  • Next by thread: Re: simple sequence problem