from sage.all_cmdline import *
_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)
import sagetex
_st_ = sagetex.SageTeXProcessor('example', version='2012/01/16 v2.3.3-69dcb0eb93de', version_check=True)
try:
_st_.inline(_sage_const_0 , latex(integrate(sin(x)*cos(x),x)))
except:
_st_.goboom(_sage_const_11 )
_st_.blockbegin()
try:
var('x')
f = cos(x)*sin(x)
pltf = plot(f,(x,-_sage_const_10 ,_sage_const_10 ))
except:
_st_.goboom(_sage_const_20 )
_st_.blockend()
try:
_st_.plot(_sage_const_0 , format='notprovided', _p_=pltf)
except:
_st_.goboom(_sage_const_22 )
_st_.endofdoc()