import sagetex
_st_ = sagetex.SageTeXProcessor('SageTex', version='2015/08/26 v3.0-92d9f7a', version_check=True)
_st_.current_tex_line = 18
_st_.blockbegin()
try:
n=2017
except:
_st_.goboom(20)
_st_.blockend()
try:
_st_.current_tex_line = 22
_st_.inline(0, latex(n))
except:
_st_.goboom(22)
try:
_st_.current_tex_line = 22
_st_.inline(1, latex(n))
except:
_st_.goboom(22)
try:
_st_.current_tex_line = 22
_st_.inline(2, latex(number_of_partitions(n)))
except:
_st_.goboom(22)
try:
_st_.current_tex_line = 22
_st_.inline(3, latex(factor(number_of_partitions(n))))
except:
_st_.goboom(22)
_st_.current_tex_line = 30
_st_.blockbegin()
try:
f(x) = exp(x) * sin(2*x)
except:
_st_.goboom(32)
_st_.blockend()
try:
_st_.current_tex_line = 37
_st_.inline(4, latex(f(x)))
except:
_st_.goboom(37)
try:
_st_.current_tex_line = 38
_st_.inline(5, latex(diff(f, x, 2)(x)))
except:
_st_.goboom(38)
try:
_st_.current_tex_line = 41
_st_.inline(6, latex(f(x)))
except:
_st_.goboom(41)
try:
_st_.current_tex_line = 44
_st_.plot(0, format='notprovided', _p_=plot(f, -pi/2, pi/2, figsize = 4, axes_labels=['$x$','$y$'], axes_labels_size = 1, tick_formatter = [pi,2]))
except:
_st_.goboom(44)
_st_.current_tex_line = 52
_st_.blockbegin()
try:
y=function('y')(x)
eq = diff(y,x)==-tan(x)/y
except:
_st_.goboom(55)
_st_.blockend()
try:
_st_.current_tex_line = 57
_st_.inline(7, latex(desolve(eq,y,show_method=True)))
except:
_st_.goboom(57)
_st_.current_tex_line = 67
_st_.blockbegin()
try:
var('c,x,y')
F1=[plot(c*sin(x),(x,-2*pi,2*pi),color='darkgreen', aspect_ratio=1) for c in sxrange(-4,4.5,.5)]
F2=[implicit_plot(y^2+2*log(abs(sec(x)))-c,(x,-2*pi,2*pi),(y,-5,5),color='red',aspect_ratio=1) for c in sxrange(-10,10,1)]
Fig = sum(F2)+sum(F1)
Fig.save("Figure.png")
except:
_st_.goboom(74)
_st_.blockend()
_st_.endofdoc()