MathGroup Archive 2009

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

Search the Archive

RecurrenceTable warning

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102430] RecurrenceTable warning
  • From: green tea <cetech07 at gmail.com>
  • Date: Sun, 9 Aug 2009 06:05:11 -0400 (EDT)

Hello, I'm using Mathematica 7.0.1.

This example is in documentation center.

In[1]:= RecurrenceTable[{a[n + 1] == 3 a[n], a[1] == 7}, a, {n, 1, 5}]
Out[1]= {7, 21, 63, 189, 567}


I added a[n]==b[n].

In[2]:= RecurrenceTable[{b[n] == a[n], a[n + 1] == 3 a[n],
  a[1] == 7}, {a, b}, {n, 1, 5}]
Out[2]= {{7, 7}, {21, 21}, {63, 63}, {189, 189}, {567, 567}}


it works well.
but when I simply swapped a with b, a warning occured.

In[3]:= RecurrenceTable[{a[n] == b[n], b[n + 1] == 3 b[n],
  b[1] == 7}, {b, a}, {n, 1, 5}]

During evaluation of In[3]:= Inverse::matsq: Argument {{1/4,1,-1},
{1/4,0,1}} at position 1 is not a non-empty square matrix. >>

Out[3]= {{7, 7}, {21, 21}, {63, 63}, {189, 189}, {567, 567}}


  • Prev by Date: Re: video on Presentations by Williams and Park
  • Next by Date: Eventhandler
  • Previous by thread: Re: a^k+b^k+c^k = d^k+e^k+f^k, for k = 2,4, with a constraint
  • Next by thread: Re: RecurrenceTable warning