diff --git a/ex_43.py b/ex_43.py index 2c7f569..d64cbb1 100644 --- a/ex_43.py +++ b/ex_43.py @@ -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])