From: Jan Simon on
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