go-fibonacci: github.com/T-PWK/go-fibonacci Index | Files

package fib

import "github.com/T-PWK/go-fibonacci"


Package Files


func Fibonacci Uses

func Fibonacci(n uint) uint64

Fibonacci calculates Fibonacci number. This function generated correct values from 0 to 93 sequence number. For bigger values use FibonacciBig function.

func FibonacciBig Uses

func FibonacciBig(n uint) *big.Int

FibonacciBig calculates Fibonacci number using bit.Int. For the sequence numbers below 94, it is recommended to use Fibonacci function as it is more efficient.

Package fib imports 1 packages (graph). Updated 2019-10-07. Refresh now. Tools for package owners.