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