Does anyone have any idea how to write a recursive formula in Maple 11? I've already figured out how to write explicit formulas, but I can't figure out the recursive formulas. I'm probably going to fail this assignment; it is due friday.
Does anyone have any idea how to write a recursive formula in Maple 11? I've already figured out how to write explicit formulas, but I can't figure out the recursive formulas. I'm probably going to fail this assignment; it is due friday.
Does anyone have any idea how to write a recursive formula in Maple 11? I've already figured out how to write explicit formulas, but I can't figure out the recursive formulas. I'm probably going to fail this assignment; it is due friday.
> fib := proc(n::nonnegint)
[LEFT]> description `returns the nth Fibonacci number`:
> if n = 0 then
> return 0:
> elif n = 1 then
> return 1:
> else
> return fib(n-2)+fib(n-1):
> end if;[/LEFT]
> end proc;
This thread is sickening!
IF Answer="Yes"
THEN
PRINT "Why are you in this subforum?"
ELSE
PRINT "Why?"
ENDIF