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
)
Public Shared Function FibonacciNumber (
n As Integer
) As Double
public:
static double FibonacciNumber(
int n
)
static member FibonacciNumber :
n : int -> float
Parameters
- n
- Type: SystemInt32
The index of the Fibonacci number to compute, which must be non-negative.
Return Value
Type:
DoubleThe nth Fibonacci number F
n.
Exceptions See Also