Class FibonacciSequence
java.lang.Object
org.episteme.core.mathematics.sequences.FibonacciSequence
- All Implemented Interfaces:
InfiniteSequence<Integer>, Sequence<Integer>
Represents the Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, ...
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Details
-
FibonacciSequence
public FibonacciSequence()
-
-
Method Details
-
get
-
isConvergent
public boolean isConvergent()Description copied from interface:InfiniteSequenceChecks if the sequence converges to a limit.- Specified by:
isConvergentin interfaceInfiniteSequence<Integer>- Returns:
- true if the sequence converges, false otherwise
-
limit
Description copied from interface:InfiniteSequenceReturns the limit of the sequence if it converges.- Specified by:
limitin interfaceInfiniteSequence<Integer>- Returns:
- the limit of the sequence
-