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