From: Jan Simon on 1 Apr 2010 10:16 Dear Rock! > Generate the first hundred terms of the following recurrence relations: > a) f(n+1) = (-1)^n * f(n)/[|f(n-1)|+1] where f(0) = 1 and f(1) = -2. > > This is my attempt at answering: > > question a): > > function f(n), f(n+1), f(n-1) > f(n+1) = ((-1)^n) * f(n)/f(n-1)+1; > where f(0) = 1 and f(1) = -2 > first hundred terms What exactly is your question? Can you show us your approaches to program this in Matlab? What does " [.] " mean? Is it a rounding operator? What is "|.|" ? Would the Matlab function ABS solve this? Do you want to know how to find the corresponding function names? Kind regards, Jan
|
Pages: 1 Prev: Conversion question Next: Matlab 2009b on Windows 7 64-bit on Vaio Z-series Laptop |