Add university content

This commit is contained in:
2025-09-26 11:16:23 +02:00
parent 45054aef03
commit 76bbd2e5ad
125 changed files with 230 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import numpy as np
def fibobo(n):
if n <= 1:
return n
return fibobo(n - 1) + fibobo(n - 2)
print(fibobo(30))
def fibibi(n):
fibi = np.array([[1, 1], [1, 0]])
return np.linalg.matrix_power(fibi, n)[0][-1]
print(fibibi(100))