Search:
Login
Help/Guide
About Trac
Preferences
Register
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Downloads
Blog
Context Navigation
←
Previous Change
Wiki History
Next Change
→
Changes between
Version 15
and
Version 16
of
Fibonacci
View differences
inline
side by side
Show
lines around each change
Ignore:
Blank lines
Case changes
White space changes
Timestamp:
11/02/09 08:00:03 (
3 weeks
ago)
Author:
dr2chase
Comment:
--
Legend:
Unmodified
Added
Removed
Modified
Fibonacci
v15
v16
20
20
We can easily define a recursive Fortress function that computes {{{F[n]}}} as follows:
21
21
{{{
22
#!fs
s
22
#!fs
x
23
23
fibonacci(n: ZZ): ZZ =
24
24
if n = 0 then 0