from sage.all_cmdline import *
_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)
import sagetex
_st_ = sagetex.SageTeXProcessor('LaTeX-Sage', version='2015/08/26 v3.0-92d9f7a', version_check=True)
try:
_st_.current_tex_line = _sage_const_27
_st_.inline(_sage_const_0 , latex(n(pi**_sage_const_2 /_sage_const_6 , digits=_sage_const_30 )))
except:
_st_.goboom(_sage_const_27 )
try:
_st_.current_tex_line = _sage_const_31
_st_.inline(_sage_const_1 , latex(((x + _sage_const_2 )**_sage_const_4 ).expand()))
except:
_st_.goboom(_sage_const_31 )
_st_.current_tex_line = _sage_const_33
_st_.blockbegin()
try:
__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)
lsn = solve(p(x) == _sage_const_0 , x)
except:
_st_.goboom(_sage_const_36 )
_st_.blockend()
try:
_st_.current_tex_line = _sage_const_37
_st_.inline(_sage_const_2 , latex(p(x)))
except:
_st_.goboom(_sage_const_37 )
try:
_st_.current_tex_line = _sage_const_39
_st_.inline(_sage_const_3 , latex(lsn[_sage_const_0 ]))
except:
_st_.goboom(_sage_const_39 )
try:
_st_.current_tex_line = _sage_const_40
_st_.inline(_sage_const_4 , latex(lsn[_sage_const_1 ]))
except:
_st_.goboom(_sage_const_40 )
try:
_st_.current_tex_line = _sage_const_41
_st_.inline(_sage_const_5 , latex(lsn[_sage_const_2 ]))
except:
_st_.goboom(_sage_const_41 )
try:
_st_.current_tex_line = _sage_const_45
_st_.plot(_sage_const_0 , format='notprovided', _p_=plot(p(x), (x, - _sage_const_2 , _sage_const_6 )))
except:
_st_.goboom(_sage_const_45 )
try:
_st_.current_tex_line = _sage_const_49
_st_.inline(_sage_const_6 , latex(p(x)))
except:
_st_.goboom(_sage_const_49 )
try:
_st_.current_tex_line = _sage_const_49
_st_.inline(_sage_const_7 , latex(p.diff()(x)))
except:
_st_.goboom(_sage_const_49 )
_st_.endofdoc()