Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 2218
1
## -*- encoding: utf-8 -*-
2
## This file (SageTex.sagetex.sage) was *autogenerated* from SageTex.tex with sagetex.sty version 2015/08/26 v3.0-92d9f7a.
3
import sagetex
4
_st_ = sagetex.SageTeXProcessor('SageTex', version='2015/08/26 v3.0-92d9f7a', version_check=True)
5
_st_.current_tex_line = 18
6
_st_.blockbegin()
7
try:
8
n=2017
9
except:
10
_st_.goboom(20)
11
_st_.blockend()
12
try:
13
_st_.current_tex_line = 22
14
_st_.inline(0, latex(n))
15
except:
16
_st_.goboom(22)
17
try:
18
_st_.current_tex_line = 22
19
_st_.inline(1, latex(n))
20
except:
21
_st_.goboom(22)
22
try:
23
_st_.current_tex_line = 22
24
_st_.inline(2, latex(number_of_partitions(n)))
25
except:
26
_st_.goboom(22)
27
try:
28
_st_.current_tex_line = 22
29
_st_.inline(3, latex(factor(number_of_partitions(n))))
30
except:
31
_st_.goboom(22)
32
_st_.current_tex_line = 30
33
_st_.blockbegin()
34
try:
35
f(x) = exp(x) * sin(2*x)
36
except:
37
_st_.goboom(32)
38
_st_.blockend()
39
try:
40
_st_.current_tex_line = 37
41
_st_.inline(4, latex(f(x)))
42
except:
43
_st_.goboom(37)
44
try:
45
_st_.current_tex_line = 38
46
_st_.inline(5, latex(diff(f, x, 2)(x)))
47
except:
48
_st_.goboom(38)
49
try:
50
_st_.current_tex_line = 41
51
_st_.inline(6, latex(f(x)))
52
except:
53
_st_.goboom(41)
54
try:
55
_st_.current_tex_line = 44
56
_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]))
57
except:
58
_st_.goboom(44)
59
_st_.current_tex_line = 52
60
_st_.blockbegin()
61
try:
62
y=function('y')(x)
63
eq = diff(y,x)==-tan(x)/y
64
except:
65
_st_.goboom(55)
66
_st_.blockend()
67
try:
68
_st_.current_tex_line = 57
69
_st_.inline(7, latex(desolve(eq,y,show_method=True)))
70
except:
71
_st_.goboom(57)
72
_st_.current_tex_line = 67
73
_st_.blockbegin()
74
try:
75
var('c,x,y')
76
F1=[plot(c*sin(x),(x,-2*pi,2*pi),color='darkgreen', aspect_ratio=1) for c in sxrange(-4,4.5,.5)]
77
#show(sum(F1))
78
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)]
79
Fig = sum(F2)+sum(F1)
80
Fig.save("Figure.png")
81
except:
82
_st_.goboom(74)
83
_st_.blockend()
84
_st_.endofdoc()
85
86