note
	description: "The Fibonacci number sequence"
	library: "Free implementation of ELKS library"
	status: "See notice at end of class."
	legal: "See notice at end of class."
	names: fibonacci
	date: "$Date: 2018-12-15 18:06:16 +0000 (Sat, 15 Dec 2018) $"
	revision: "$Revision: 102608 $"

class interface
	FIBONACCI

create 
	default_create

feature -- Access

	First: INTEGER_32 = 1

	Second: INTEGER_32 = 1

	higher_fibonacci (n: INTEGER_32): INTEGER_32
			-- Lowest Fibonacci number greater than or equal to n
		ensure
			instance_free: class

	lower_fibonacci (n: INTEGER_32): INTEGER_32
			-- Greatest Fibonacci number lower than or equal to n
		require
			argument_big_enough: n >= Second
		ensure
			instance_free: class

	all_lower_fibonacci (n: INTEGER_32): ARRAY [BOOLEAN]
			-- Array of n boolean values, where the
			-- value at index i is true if and only if
			-- i is a Fibonacci number.
		ensure
			instance_free: class

	is_fibonacci (n: INTEGER_32): BOOLEAN
			-- Is n a Fibonacci number?
		ensure then
			instance_free: class

	i_th (i: INTEGER_32): INTEGER_32
			-- The i-th Fibonacci number
		ensure then
			instance_free: class
	
feature -- Iteration

	new_cursor: FIBONACCI
			-- Fresh cursor associated with current structure
		ensure then
			instance_free: class
	
note
	copyright: "Copyright (c) 1984-2018, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
		Eiffel Software
		5949 Hollister Ave., Goleta, CA 93117 USA
		Telephone 805-685-1006, Fax 805-685-6869
		Website http://www.eiffel.com
		Customer support http://support.eiffel.com
	]"

end -- class FIBONACCI

Generated by ISE EiffelStudio