
This notebook is part of the IPython NB Example; the content is available on GitHub.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
IPynb Example 4¶
Purpose: The purpose of this workbook is to help you get comfortable with the topics below.
Recomended Usage
- Run each of the cells (Shift+Enter) and edit them as necessary to solidify your understanding
- Do any of the exercises that are relevant to helping you understand the material
Topics Covered
- Test NX Graphics
- Test Display LaTex
Introduction¶
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Test Display NX Graphic¶
import networkx as nx
M1 = np.array([[0, 0, 0, 1],
[0, 0, 0, 1],
[0, 0, 0, 1],
[1, 1, 1, 0]])
graph = nx.from_numpy_matrix(M1)
nx.draw_circular(graph)
Test Display LaTex¶
Say we want to describe motion along two lines using a system of equations like $-2x + 3y$ and $3x - 6y$. We can describe these two equations using a 2x2 matrix
${\displaystyle M ={\begin{pmatrix}-2&3\\3&-6\end{pmatrix}}}$
We can see the vector addition of $A$ and $B$ shown below
$$ {\displaystyle A + B = {\begin{pmatrix}1\\2\end{pmatrix}} + {\begin{pmatrix}1\\0\end{pmatrix}} = {\begin{pmatrix}1+1\\2+0\end{pmatrix}} = {\begin{pmatrix}2\\2\end{pmatrix}}} $$