| Hosted by CoCalc | Download
1
## -*- encoding: utf-8 -*-
2
# This file was *autogenerated* from the file example.sagetex.sage
3
from sage.all_cmdline import * # import sage library
4
_sage_const_22 = Integer(22); _sage_const_11 = Integer(11); _sage_const_0 = Integer(0); _sage_const_10 = Integer(10); _sage_const_20 = Integer(20)## This file (example.sagetex.sage) was *autogenerated* from example.tex with sagetex.sty version 2012/01/16 v2.3.3-69dcb0eb93de.
5
import sagetex
6
_st_ = sagetex.SageTeXProcessor('example', version='2012/01/16 v2.3.3-69dcb0eb93de', version_check=True)
7
try:
8
_st_.inline(_sage_const_0 , latex(integrate(sin(x)*cos(x),x)))
9
except:
10
_st_.goboom(_sage_const_11 )
11
_st_.blockbegin()
12
try:
13
var('x')
14
f = cos(x)*sin(x)
15
pltf = plot(f,(x,-_sage_const_10 ,_sage_const_10 ))
16
except:
17
_st_.goboom(_sage_const_20 )
18
_st_.blockend()
19
try:
20
_st_.plot(_sage_const_0 , format='notprovided', _p_=pltf)
21
except:
22
_st_.goboom(_sage_const_22 )
23
_st_.endofdoc()
24
25