package Fibonacci1; /** * Slow Fibonacci Number Calculator. * * @author Wayne Eberly */ public class SFibonacci { /** * Computes a specified Fibonacci number as a long integer by a direct * application of the recursive definition. * *
* This method is too slow to be used in practice. It is provided * to facilitate testing of more efficient methods. *
* *
* Precondition:
* i
is a nonnegative integer.
* Postcondition:
* Value returned is the i
th
* Fibonacci number.
*