|
Math::Fibonacci - Fibonacci numbers. |
Math::Fibonacci - Fibonacci numbers.
$Revision: 1.5 $
use Math::Fibonacci qw(term series decompose);
my $term = term ( 42 );
my @series = series ( 42 );
my @sum = decompose ( 65535 );
This module provides a few functions related to Fibonacci numbers.
term(), series() decompose(), isfibonacci()
F(n) ~ g^n/sqrt(5), where g is the golden
ratio and ~ means ``take the nearest integer''.
Vipul Ved Prakash, <mail@vipul.net>
Copyright (c) 1999-2001, Vipul Ved Prakash.
This code is free software; you can redistribute it and/or modify it under the ARTISTIC license (a copy is included in the distribution) or under the same terms as Perl itself.
|
Math::Fibonacci - Fibonacci numbers. |