Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: math480-2016
Views: 2226
1
## -*- encoding: utf-8 -*-
2
# This file was *autogenerated* from the file answer-3.sagetex.sage
3
from sage.all_cmdline import * # import sage library
4
_sage_const_2017 = Integer(2017); _sage_const_2016 = Integer(2016); _sage_const_1 = Integer(1); _sage_const_0 = Integer(0); _sage_const_2 = Integer(2); _sage_const_100 = Integer(100); _sage_const_42 = Integer(42); _sage_const_13 = Integer(13); _sage_const_12 = Integer(12); _sage_const_20 = Integer(20); _sage_const_32 = Integer(32); _sage_const_36 = Integer(36)## This file (answer-3.sagetex.sage) was *autogenerated* from answer-3.tex with sagetex.sty version 2012/01/16 v2.3.3-69dcb0eb93de.
5
import sagetex
6
_st_ = sagetex.SageTeXProcessor('answer-3', version='2012/01/16 v2.3.3-69dcb0eb93de', version_check=True)
7
try:
8
_st_.inline(_sage_const_0 , latex(factor(_sage_const_2016 )))
9
except:
10
_st_.goboom(_sage_const_12 )
11
try:
12
_st_.inline(_sage_const_1 , latex(factor(_sage_const_2017 )))
13
except:
14
_st_.goboom(_sage_const_13 )
15
try:
16
_st_.plot(_sage_const_0 , format='notprovided', _p_=plot(sin(x**_sage_const_2 ), _sage_const_0 , pi))
17
except:
18
_st_.goboom(_sage_const_20 )
19
_st_.blockbegin()
20
try:
21
var('k, n')
22
f = sum(sin(k), k, _sage_const_1 , n)
23
except:
24
_st_.goboom(_sage_const_32 )
25
_st_.blockend()
26
try:
27
_st_.inline(_sage_const_2 , latex(f))
28
except:
29
_st_.goboom(_sage_const_36 )
30
try:
31
_st_.plot(_sage_const_1 , format='notprovided', _p_=plot(f, _sage_const_0 , _sage_const_100 , color='red'))
32
except:
33
_st_.goboom(_sage_const_42 )
34
_st_.endofdoc()
35
36