Help on FindRoot
- To: mathgroup at smc.vnet.net
- Subject: [mg5786] Help on FindRoot
- From: Hossein Kazemi <kazemi at som.umass.edu>
- Date: Sat, 18 Jan 1997 14:58:38 -0500
- Sender: owner-wri-mathgroup at wolfram.com
I have the following lines:
h[0]=1;
x[t_]:=2^h[t] - 3*h[t-1];
Table[h[t]=h[t]/.FindRoot[x[t]==t,{h[t],2}],{t,1,5}]
As you can see, I am trying to solve for different values of h[t], which
is recursively depends on h[t-1].
MMA (3.0) gives a bunch of errors such as
Unset:: norep: Assignment on h for h[1] not found.
and so on.
However, it also gives the correct answers at the end.
What is going on? Am I doing something wrong?
**********************************************************
Hossein Kazemi
University of Massachusetts