Sharedsupport / 2016-04-18-exam / example.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 example.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_600 = Integer(600); _sage_const_29 = Integer(29); _sage_const_10 = Integer(10); _sage_const_22 = Integer(22); _sage_const_26 = Integer(26)## This file (example.sagetex.sage) was *autogenerated* from example.tex with sagetex.sty version 2012/01/16 v2.3.3-69dcb0eb93de.
5
import sagetex
6
_st_ = sagetex.SageTeXProcessor('example', version='2012/01/16 v2.3.3-69dcb0eb93de', version_check=True)
7
try:
8
_st_.inline(_sage_const_0 , latex(ZZ.random_element(_sage_const_10 ,_sage_const_600 )))
9
except:
10
_st_.goboom(_sage_const_22 )
11
try:
12
_st_.inline(_sage_const_1 , latex(QQ['x'].random_element(_sage_const_3 )))
13
except:
14
_st_.goboom(_sage_const_26 )
15
try:
16
_st_.inline(_sage_const_2 , latex(random_matrix(ZZ, _sage_const_3 )))
17
except:
18
_st_.goboom(_sage_const_29 )
19
_st_.endofdoc()
20