Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: fibonacci numbers
Date: Tue, 18 Nov 2008 23:13:02 +0000 (UTC)
Organization: Xoran Technologies
Lines: 8
Message-ID: <gfvi5t$39q$1@fred.mathworks.com>
References: <gfv1n2$r4j$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227049982 3386 172.30.248.38 (18 Nov 2008 23:13:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Nov 2008 23:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:501598


"Maria " <mariaki16@hotmail.com> wrote in message <gfv1n2$r4j$1@fred.mathworks.com>...
> i have to write a function that generates the fibonacci sequence with out using loops. the length is specified by the user.if a single number is specified the sequence should be generated for numbers -Fn...Fn and if twoarguments ar given the sequence should run from Fm...Fn. and the zeroth term assume 0 is F0. Can anyone help me??

Looks like there is a closed form expression for the sequence here. 

http://en.wikipedia.org/wiki/Fibonacci_number#Power_series

So can't you evaluate it directly?