Skip to content

Commit 4ada6a2

Browse files
Update matrix_exponentiation.py
1 parent eeeae84 commit 4ada6a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

maths/matrix_exponentiation.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def modular_exponentiation(a, b):
4040

4141
def fibonacci_with_matrix_exponentiation(n, f1, f2):
4242
"""
43-
Returns the n number of the Fibonacci sequence that
44-
start with f1 and f2
45-
Use the matrix exponentiation
43+
Returns the nth number of the Fibonacci sequence that
44+
starts with f1 and f2
45+
Uses the matrix exponentiation
4646
>>> fibonacci_with_matrix_exponentiation(1, 5, 6)
4747
5
4848
>>> fibonacci_with_matrix_exponentiation(2, 10, 11)
@@ -66,9 +66,9 @@ def fibonacci_with_matrix_exponentiation(n, f1, f2):
6666

6767
def simple_fibonacci(n, f1, f2):
6868
"""
69-
Returns the n number of the Fibonacci sequence that
70-
start with f1 and f2
71-
Use the definition
69+
Returns the nth number of the Fibonacci sequence that
70+
starts with f1 and f2
71+
Uses the definition
7272
>>> simple_fibonacci(1, 5, 6)
7373
5
7474
>>> simple_fibonacci(2, 10, 11)

0 commit comments

Comments
 (0)