MathGroup Archive 2013

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

Search the Archive

very basic RecurrenceTable puzzle


RecurrenceTable[{st[t] == If[t < 2, st[t - 1], 1], st[-1] == 0}, st, {t, -1, 5}]

produces

{0, st[-1], st[0], 1, 1, 1, 1}

I'm not seeing why the output contains st[-1] and st[0] instead of 0s.

Note that
RecurrenceTable[{st[t] == st[t - 1], st[-1] == 0}, st, {t, -1, 5}]
produces a list of zeros (i.e., no surprises).

Thanks,
Alan Isaac



  • Prev by Date: Re: Farewell to a friend
  • Next by Date: Re: very basic RecurrenceTable puzzle
  • Previous by thread: Re: Farewell to a friend
  • Next by thread: Re: very basic RecurrenceTable puzzle