Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 29897
1
## -*- encoding: utf-8 -*-
2
3
# This file was *autogenerated* from the file master.sagetex.sage
4
from sage.all_cmdline import * # import sage library
5
6
_sage_const_40 = Integer(40); _sage_const_2 = Integer(2); _sage_const_1 = Integer(1); _sage_const_0 = Integer(0); _sage_const_44 = Integer(44); _sage_const_46 = Integer(46); _sage_const_5 = Integer(5); _sage_const_61 = Integer(61); _sage_const_3 = Integer(3); _sage_const_4 = Integer(4); _sage_const_10 = Integer(10); _sage_const_59 = Integer(59); _sage_const_54 = Integer(54); _sage_const_63 = Integer(63); _sage_const_37 = Integer(37); _sage_const_50 = Integer(50)## This file (master.sagetex.sage) was *autogenerated* from master.tex with sagetex.sty version 2015/08/26 v3.0-92d9f7a.
7
import sagetex
8
_st_ = sagetex.SageTeXProcessor('master', version='2015/08/26 v3.0-92d9f7a', version_check=True)
9
try:
10
_st_.current_tex_line = _sage_const_37
11
_st_.inline(_sage_const_0 , latex(_sage_const_1 +_sage_const_1 ))
12
except:
13
_st_.goboom(_sage_const_37 )
14
_st_.current_tex_line = _sage_const_40
15
_st_.blockbegin()
16
try:
17
x = var('x')
18
ex = (_sage_const_1 + x)**_sage_const_5
19
exe = ex.expand()
20
except:
21
_st_.goboom(_sage_const_44 )
22
_st_.blockend()
23
try:
24
_st_.current_tex_line = _sage_const_46
25
_st_.inline(_sage_const_1 , latex(ex))
26
except:
27
_st_.goboom(_sage_const_46 )
28
try:
29
_st_.current_tex_line = _sage_const_46
30
_st_.inline(_sage_const_2 , latex(exe))
31
except:
32
_st_.goboom(_sage_const_46 )
33
try:
34
_st_.current_tex_line = _sage_const_50
35
_st_.inline(_sage_const_3 , str(CartesianProduct(['a', 'b'], [_sage_const_1 , _sage_const_2 , _sage_const_3 ]).list()))
36
except:
37
_st_.goboom(_sage_const_50 )
38
_st_.current_tex_line = _sage_const_54
39
_st_.blockbegin()
40
try:
41
a = _sage_const_2
42
b = _sage_const_3
43
x = var('x')
44
g = a * sin(b * x) + sqrt(x)
45
except:
46
_st_.goboom(_sage_const_59 )
47
_st_.blockend()
48
try:
49
_st_.current_tex_line = _sage_const_61
50
_st_.inline(_sage_const_4 , latex(g))
51
except:
52
_st_.goboom(_sage_const_61 )
53
try:
54
_st_.current_tex_line = _sage_const_63
55
_st_.plot(_sage_const_0 , format='notprovided', _p_=plot(g, _sage_const_0 , _sage_const_10 ))
56
except:
57
_st_.goboom(_sage_const_63 )
58
_st_.endofdoc()
59
60
61