fixed matrix power

gol
Daniel Knüttel 2019-01-23 16:46:26 +01:00
parent c5a686cbed
commit 6e725459fc
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@ P = np.array(
print(P.shape)
v = np.array([0, 1, 0, 0, 0, 0])
w = np.power(np.dot(P**4, v), 1/4)
w = np.dot(np.linalg.matrix_power(P, 4), v)
print(w)
print(w[-1])