Sharedsupport / 2016-06-02-094138-numpy-array-latex / numpy-array-sagetex.sagetex.sage.pyOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
1
## -*- encoding: utf-8 -*-
2
# This file was *autogenerated* from the file numpy-array-sagetex.sagetex.sage
3
from sage.all_cmdline import * # import sage library
4
_sage_const_3 = Integer(3); _sage_const_2 = Integer(2); _sage_const_1 = Integer(1); _sage_const_0 = Integer(0); _sage_const_4 = Integer(4); _sage_const_12 = Integer(12); _sage_const_16 = Integer(16)## This file (numpy-array-sagetex.sagetex.sage) was *autogenerated* from numpy-array-sagetex.tex with sagetex.sty version 2012/01/16 v2.3.3-69dcb0eb93de.
5
import sagetex
6
_st_ = sagetex.SageTeXProcessor('numpy-array-sagetex', version='2012/01/16 v2.3.3-69dcb0eb93de', version_check=True)
7
_st_.blockbegin()
8
try:
9
import numpy
10
P = numpy.array([[_sage_const_1 ,_sage_const_2 ],[_sage_const_3 ,_sage_const_4 ]])
11
except:
12
_st_.goboom(_sage_const_12 )
13
_st_.blockend()
14
try:
15
_st_.inline(_sage_const_0 , latex(matrix(P)))
16
except:
17
_st_.goboom(_sage_const_16 )
18
_st_.endofdoc()
19