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