Click or drag to resize

AdvancedIntegerMathFibonacciNumber Method

Computes a Fibonacci number.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static double FibonacciNumber(
	int n
)

Parameters

n
Type: SystemInt32
The index of the Fibonacci number to compute, which must be non-negative.

Return Value

Type: Double
The nth Fibonacci number Fn.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative.
See Also