Sharedsupport / 2016-04-10-210704-latex-images / example.sagetex.sageOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
1
## -*- encoding: utf-8 -*-
2
## This file (example.sagetex.sage) was *autogenerated* from example.tex with sagetex.sty version 2012/01/16 v2.3.3-69dcb0eb93de.
3
import sagetex
4
_st_ = sagetex.SageTeXProcessor('example', version='2012/01/16 v2.3.3-69dcb0eb93de', version_check=True)
5
try:
6
_st_.inline(0, latex(integrate(sin(x)*cos(x),x)))
7
except:
8
_st_.goboom(11)
9
_st_.blockbegin()
10
try:
11
var('x')
12
f = cos(x)*sin(x)
13
pltf = plot(f,(x,-10,10))
14
except:
15
_st_.goboom(20)
16
_st_.blockend()
17
try:
18
_st_.plot(0, format='notprovided', _p_=pltf)
19
except:
20
_st_.goboom(22)
21
_st_.endofdoc()
22