ejd141
09-18-2003, 04:40 PM
Hi all:
I have a problem that I can't figure out:
I need to write a program that generates the first n terms in the sequence given by the difference equation
X_k+1 = 2.25x_k - 0.5x_k-1
with starting values
x_1 = 1/3
x_2 = 1/12
Use n = 225 if you are working in a single precision or n=60 if you are working in a double precision.
I'm programming using MATLAB, and it's simply C and/or Fortrane based, but I'm having trouble. Hopefully someone can help!
Thanks!
I have a problem that I can't figure out:
I need to write a program that generates the first n terms in the sequence given by the difference equation
X_k+1 = 2.25x_k - 0.5x_k-1
with starting values
x_1 = 1/3
x_2 = 1/12
Use n = 225 if you are working in a single precision or n=60 if you are working in a double precision.
I'm programming using MATLAB, and it's simply C and/or Fortrane based, but I'm having trouble. Hopefully someone can help!
Thanks!