Skip to content

Commit 53e54e0

Browse files
committed
simplify imports
1 parent 0d33575 commit 53e54e0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lectures/eigen_I.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ We will use the following imports:
5151
```{code-cell} ipython3
5252
import matplotlib.pyplot as plt
5353
import numpy as np
54+
from numpy.linalg import matrix_power
55+
from matplotlib import cm
5456
from matplotlib.lines import Line2D
5557
from mpl_toolkits.mplot3d import Axes3D
5658
from matplotlib.patches import FancyArrowPatch
@@ -594,9 +596,6 @@ different maps $A$.
594596
(plot_series)=
595597

596598
```{code-cell} ipython3
597-
from numpy.linalg import matrix_power
598-
from matplotlib import cm
599-
600599
def plot_series(B, v, n):
601600
602601
A = np.array([[1, -1],
@@ -1034,10 +1033,6 @@ Use the visualization in the previous exercise to explain why the trajectory of
10341033
Here is one solution
10351034

10361035
```{code-cell} ipython3
1037-
import numpy as np
1038-
import matplotlib.pyplot as plt
1039-
from matplotlib.lines import Line2D
1040-
10411036
figure, ax = plt.subplots(1,3, figsize = (15,5))
10421037
A = np.array([[sqrt(3) + 1, -2],
10431038
[1, sqrt(3) - 1]])

0 commit comments

Comments
 (0)