MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / nth_fibonacci_using_matrix_exponentiation.py

File nth_fibonacci_using_matrix_exponentiation.py

matrix/nth_fibonacci_using_matrix_exponentiation.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Implementation of finding nth fibonacci number using matrix exponentiation.
3Time Complexity is about O(log(n)*8), where 8 is the complexity of matrix
4multiplication of size 2 by 2.

Callers

nothing calls this directly

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected