Sharedsupport / 2016-06-02-094138-numpy-array-latex / numpy-array-sagetex.texOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
1
\documentclass{article}
2
\usepackage{sagetex}
3
\title{Title of Document}
4
\author{Name of Author}
5
6
\begin{document}
7
\maketitle
8
9
\begin{sageblock}
10
import numpy
11
P = numpy.array([[1,2],[3,4]])
12
\end{sageblock}
13
14
Consider
15
$$
16
P=\sage{matrix(P)}
17
$$
18
19
\end{document}
20