debian man page for math::fibonacci

Query: math::fibonacci

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Math::Fibonacci(3pm)					User Contributed Perl Documentation				      Math::Fibonacci(3pm)

NAME
Math::Fibonacci - Fibonacci numbers.
VERSION
$Revision: 1.5 $
SYNOPSIS
use Math::Fibonacci qw(term series decompose); my $term = term ( 42 ); my @series = series ( 42 ); my @sum = decompose ( 65535 );
DESCRIPTION
This module provides a few functions related to Fibonacci numbers.
EXPORTS ON REQUEST
term(), series() decompose(), isfibonacci()
FUNCTIONS
term($n) Returns the $n-th term of the Fibonacci sequence. The term is computed using the fast algorithm: "F(n) ~ g^n/sqrt(5)", where g is the golden ratio and ~ means "take the nearest integer". series($n) Computes and returns the first $n Fibonacci numbers. decompose($int) Decomposes $int into the sum of Fibonacci numbers. Returns the list of Fibonacci numbers. isfibonacci($int) Returns the sequence number of $int if it is a Fibonacci number or a non-true value if it is not.
AUTHOR
Vipul Ved Prakash, <mail@vipul.net>
LICENSE
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. perl v5.8.8 2008-03-09 Math::Fibonacci(3pm)
Related Man Pages
heap::elem::num(3pm) - debian
heap::elem::numrev(3pm) - debian
heap::elem::refrev(3pm) - debian
math::base85(3pm) - debian
math::symbolic::auxfunctions(3pm) - debian
Similar Topics in the Unix Linux Community
How to split a value according to character position
using bc with floating point number in files
Shell script to generate Fibonacci series using recursion
To find missing numbers from a number series
program to find and print a Fibonacci sequence of numbers. --Errors