Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 4454
1
## -*- encoding: utf-8 -*-
2
3
# This file was *autogenerated* from the file LaTeX-Sage.sagetex.sage
4
from sage.all_cmdline import * # import sage library
5
6
_sage_const_3 = Integer(3); _sage_const_2 = Integer(2); _sage_const_1 = Integer(1); _sage_const_0 = Integer(0); _sage_const_7 = Integer(7); _sage_const_6 = Integer(6); _sage_const_5 = Integer(5); _sage_const_4 = Integer(4); _sage_const_49 = Integer(49); _sage_const_41 = Integer(41); _sage_const_40 = Integer(40); _sage_const_39 = Integer(39); _sage_const_45 = Integer(45); _sage_const_31 = Integer(31); _sage_const_30 = Integer(30); _sage_const_33 = Integer(33); _sage_const_27 = Integer(27); _sage_const_37 = Integer(37); _sage_const_36 = Integer(36)## This file (LaTeX-Sage.sagetex.sage) was *autogenerated* from LaTeX-Sage.tex with sagetex.sty version 2015/08/26 v3.0-92d9f7a.
7
import sagetex
8
_st_ = sagetex.SageTeXProcessor('LaTeX-Sage', version='2015/08/26 v3.0-92d9f7a', version_check=True)
9
try:
10
_st_.current_tex_line = _sage_const_27
11
_st_.inline(_sage_const_0 , latex(n(pi**_sage_const_2 /_sage_const_6 , digits=_sage_const_30 )))
12
except:
13
_st_.goboom(_sage_const_27 )
14
try:
15
_st_.current_tex_line = _sage_const_31
16
_st_.inline(_sage_const_1 , latex(((x + _sage_const_2 )**_sage_const_4 ).expand()))
17
except:
18
_st_.goboom(_sage_const_31 )
19
_st_.current_tex_line = _sage_const_33
20
_st_.blockbegin()
21
try:
22
__tmp__=var("x"); p = symbolic_expression(x**_sage_const_3 - _sage_const_5 *x**_sage_const_2 - _sage_const_4 *x + _sage_const_2 ).function(x)
23
lsn = solve(p(x) == _sage_const_0 , x)
24
except:
25
_st_.goboom(_sage_const_36 )
26
_st_.blockend()
27
try:
28
_st_.current_tex_line = _sage_const_37
29
_st_.inline(_sage_const_2 , latex(p(x)))
30
except:
31
_st_.goboom(_sage_const_37 )
32
try:
33
_st_.current_tex_line = _sage_const_39
34
_st_.inline(_sage_const_3 , latex(lsn[_sage_const_0 ]))
35
except:
36
_st_.goboom(_sage_const_39 )
37
try:
38
_st_.current_tex_line = _sage_const_40
39
_st_.inline(_sage_const_4 , latex(lsn[_sage_const_1 ]))
40
except:
41
_st_.goboom(_sage_const_40 )
42
try:
43
_st_.current_tex_line = _sage_const_41
44
_st_.inline(_sage_const_5 , latex(lsn[_sage_const_2 ]))
45
except:
46
_st_.goboom(_sage_const_41 )
47
try:
48
_st_.current_tex_line = _sage_const_45
49
_st_.plot(_sage_const_0 , format='notprovided', _p_=plot(p(x), (x, - _sage_const_2 , _sage_const_6 )))
50
except:
51
_st_.goboom(_sage_const_45 )
52
try:
53
_st_.current_tex_line = _sage_const_49
54
_st_.inline(_sage_const_6 , latex(p(x)))
55
except:
56
_st_.goboom(_sage_const_49 )
57
try:
58
_st_.current_tex_line = _sage_const_49
59
_st_.inline(_sage_const_7 , latex(p.diff()(x)))
60
except:
61
_st_.goboom(_sage_const_49 )
62
_st_.endofdoc()
63
64
65