fixed matrix power

This commit is contained in:
Daniel Knüttel 2019-01-23 16:46:26 +01:00
parent c5a686cbed
commit 6e725459fc

View File

@ -10,6 +10,6 @@ P = np.array(
print(P.shape) print(P.shape)
v = np.array([0, 1, 0, 0, 0, 0]) 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)
print(w[-1]) print(w[-1])