Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14414 > unrolled thread
| Started by | Alan <alan.isaac@gmail.com> |
|---|---|
| First post | 2013-05-04 20:23 +0000 |
| Last post | 2013-05-04 20:23 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
very basic RecurrenceTable puzzle Alan <alan.isaac@gmail.com> - 2013-05-04 20:23 +0000
| From | Alan <alan.isaac@gmail.com> |
|---|---|
| Date | 2013-05-04 20:23 +0000 |
| Subject | very basic RecurrenceTable puzzle |
| Message-ID | <km3qn4$8b2$1@smc.vnet.net> |
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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web