CoCalc Public FilesGroup 1 Lab 2 Shared.sagews
Views : 172
##### Group 1 Lab 2 Grade: 18/20
#Group 1
#Lab 2

a=5
show(a)

b="5"
show(b)

$\displaystyle 5$
5
a+1
b+1

6
Error in lines 2-2 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags), namespace, locals) File "", line 1, in <module> File "sage/rings/integer.pyx", line 1685, in sage.rings.integer.Integer.__add__ (build/cythonized/sage/rings/integer.c:11443) return coercion_model.bin_op(left, right, operator.add) File "sage/structure/coerce.pyx", line 1210, in sage.structure.coerce.CoercionModel.bin_op (build/cythonized/sage/structure/coerce.c:10918) raise bin_op_exception(op, x, y) TypeError: unsupported operand parent(s) for +: '<type 'str'>' and 'Integer Ring'
#When you add 1 to a, it shows 6. However when you add 1 to b, there is an error message because b is considered a word, not a number

"5"+"1"

'51'
#If the call are charectors, then it squishes them together. If the call are numbers, then it will add the numbers

type(a)

<type 'sage.rings.integer.Integer'>
type(0.2)
type(x^2)


<type 'sage.rings.real_mpfr.RealLiteral'> <type 'sage.symbolic.expression.Expression'>
["bacteria population"]
[100,200,400,800]

['bacteria population'] [100, 200, 400, 800]
bacteria=[100,200,400,800] ##### Good. -HK

type(bacteria) ##### Good. -HK

<type 'list'>
#the output will be 200
bacteria[1]
bacteria[0]

200 100
bacteria.append(1600) ##### Good. -HK
bacteria[4]

1600
bacteria.append(3200)
bacteria[6]


Error in lines 2-2 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute flags=compile_flags), namespace, locals) File "", line 1, in <module> IndexError: list index out of range
kingdoms= ["Bacteria", "Protists", "Plants", "Fungi", "Animals"]
kingdoms.append("Archaea")
kingdoms.append("Archaea")
kingdoms
#By appending the same variable twice in the list, you will now have two variables with the same definition.

['Bacteria', 'Protists', 'Plants', 'Fungi', 'Animals', 'Archaea', 'Archaea']
twelve= [3, 5, 7, 9, 11]
list_plot(twelve)

thirteen= [(5,4), (6,3), (3,5), (7,2), (8,1)]
list_plot(thirteen)

Africa= [(62,20), (81,34), (75,18), (90,25), (67,31)]
list_plot(Africa, axes_labels=["Hippos", "Crocodiles"], plotjoined = True, color="red")

#Exercise 15
bacteriatime = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
bacteriapop = [100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600, 51200, 102400, 204800, 409600, 819200, 1638400, 3276800, 6553600, 13107200, 26214400, 52428800, 104857600, 209715200, 419430400, 838860800]

bacteriapoptime = zip(bacteriatime, bacteriapop)
list_plot(bacteriapoptime, axes_labels=["Hours", "Population"], plotjoined = True)

#Exercise 16 Rats N Stuff
wt5_time = [0,0.25,0.5,0.75,1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.25,3.5,3.75,4,4.25,4.5,4.75,5,5.25,5.5,5.75,6,6.25,6.5,6.75,7,7.25,7.5,7.75,8,8.25,8.5,8.75,9,9.25,9.5,9.75,10,10.25,10.5,10.75,11,11.25,11.5,11.75,12,12.25,12.5,12.75,13,13.25,13.5,13.75,14,14.25,14.5,14.75,15,15.25,15.5,15.75,16,16.25,16.5,16.75,17,17.25,17.5,17.75,18,18.25,18.5,18.75,19,19.25,19.5,19.75,20,20.25,20.5,20.75,21,21.25,21.5,21.75,22,22.25,22.5,22.75,23,23.25,23.5,23.75,24,24.25,24.5,24.75,25,25.25,25.5,25.75,26,26.25,26.5,26.75,27,27.25,27.5,27.75,28,28.25,28.5,28.75,29,29.25,29.5,29.75,30,30.25,30.5,30.75,31,31.25,31.5,31.75,32,32.25,32.5,32.75,33,33.25,33.5,33.75,34,34.25,34.5,34.75,35,35.25,35.5,35.75,36,36.25,36.5,36.75,37,37.25,37.5,37.75,38,38.25,38.5,38.75,39,39.25,39.5,39.75,40,40.25,40.5,40.75,41,41.25,41.5,41.75,42,42.25,42.5,42.75,43,43.25,43.5,43.75,44,44.25,44.5,44.75,45,45.25,45.5,45.75,46,46.25,46.5,46.75,47,47.25,47.5,47.75,48,48.25,48.5,48.75,49,49.25,49.5,49.75,50,50.25,50.5,50.75,51,51.25,51.5,51.75,52,52.25,52.5,52.75,53,53.25,53.5,53.75,54,54.25,54.5,54.75,55,55.25,55.5,55.75,56,56.25,56.5,56.75,57,57.25,57.5,57.75,58,58.25,58.5,58.75,59,59.25,59.5,59.75,60,60.25,60.5,60.75,61,61.25,61.5,61.75,62,62.25,62.5,62.75,63,63.25,63.5,63.75,64,64.25,64.5,64.75,65,65.25,65.5,65.75,66,66.25,66.5,66.75,67,67.25,67.5,67.75,68,68.25,68.5,68.75,69,69.25,69.5,69.75,70,70.25,70.5,70.75,71,71.25,71.5,71.75,72]
wt5_temp = [35.77,37.23,37.32,36.75,36.09,35.68,35.46,35.35,35.3,35.21,35.21,35.25,35.4,35.92,36.52,36.56,36.07,35.6,35.39,35.27,35.09,34.91,34.85,34.81,34.78,34.85,34.88,34.96,35.05,34.96,34.8,34.76,34.73,34.74,35.18,35.91,36.31,36.39,36.12,35.59,35.27,35.17,35,34.69,34.53,34.85,35.49,35.98,35.89,35.34,35,35.37,36.25,36.62,36.51,36.77,37.32,37.76,37.95,38.01,38.03,38.05,38.02,37.95,37.93,37.88,37.69,37.53,37.51,37.56,37.61,37.6,37.6,37.65,37.61,37.51,37.14,36.4,35.72,35.44,35.36,35.27,35.32,35.65,36.2,36.61,36.96,37.33,37.62,37.8,37.86,37.84,37.82,37.81,37.75,37.68,37.63,37.52,37.3,36.82,36.13,35.68,35.52,35.57,35.66,35.62,35.42,35.28,35.64,36.13,36.01,35.61,35.37,35.29,35.2,35.15,35.18,35.18,35.07,35.02,35.05,35,35.02,35.1,35.02,35.08,35.49,35.89,35.78,35.38,35.11,34.96,34.97,35.09,35.07,34.85,34.69,34.99,35.45,35.38,35.02,34.81,34.83,35.34,36.18,36.83,37.14,37.06,36.5,35.94,36.06,36.65,37.23,37.66,37.86,37.84,37.73,37.68,37.67,37.63,37.48,37.3,37.45,37.7,37.78,37.8,37.78,37.71,37.68,37.75,37.75,37.69,37.6,37.48,36.91,36.01,35.3,35.09,35.12,35.21,35.41,35.84,36.59,37.13,37.42,37.64,37.71,37.77,37.91,37.96,37.92,37.87,37.76,37.59,37.27,36.75,36.08,35.53,35.23,35.05,34.95,35.06,35.26,35.35,35.39,35.26,35.13,35.37,36.06,36.48,36.11,35.6,35.31,35.09,34.94,34.96,34.97,34.89,34.88,34.96,35.07,34.99,34.77,34.62,34.67,34.85,35.08,35.5,35.63,35.25,34.9,34.8,34.81,34.85,34.87,34.84,34.92,35.35,36.03,36.64,37.08,37.23,36.85,36.07,35.64,35.75,35.89,36.23,36.96,37.56,37.87,37.97,37.98,37.93,37.81,37.65,37.58,37.62,37.49,36.99,36.27,35.89,36.29,37.03,37.51,37.71,37.77,37.76,37.74,37.79,37.85,37.8,37.78,37.68,37.45,37.31,37.2,36.81,36.15,35.69,35.62,35.64,35.5,35.35,35.4,35.93,36.72,37.25,37.47]
wt5_heartrate = [331.47,410.62,463.32,480.56,473.31,459.9,452.98,454.75,461.56,470.87,484.46,505.84,534.55,562.83,578.89,574.82,552.25,520.8,491.4,470.81,460.3,457.16,456.96,456.11,453.75,451.48,451.06,452.29,453.44,453.55,454.49,461.06,478.03,505.51,536.27,558.56,563.27,549.66,525.12,499.9,481.87,475.01,480.79,498.93,525.28,549.9,560.69,552.6,533.76,520.3,523.28,540.41,560.34,573.63,578.49,578.02,574.9,570.02,564.09,558.59,554.81,552.92,552.29,552.27,552.39,552.24,551.57,550.63,550.19,550.88,552.73,555.04,556.38,554.57,547.06,532.59,512.76,491.6,473.03,459.32,452.36,455.58,472.62,503.18,540.53,574.07,595.23,601.76,597.62,589.4,582.49,579.13,578.75,579.31,578.58,574.91,567.41,556.08,541.99,527.21,514.02,503.74,496.21,490.82,488.54,492.6,505.66,525.36,543.11,549.4,541.17,523.96,506.83,495.72,491.37,491.71,494.49,497.69,498.8,495.44,487.4,478.19,473.99,480.22,497.57,520.13,537.52,540.95,529.09,508.91,490.2,479.05,476.1,479.64,488.66,501.97,515.35,521.91,517.48,506.06,498.71,505.08,525.26,549.53,565.84,568.35,560.79,553.23,554.81,567.03,582.81,592.37,590.95,581.33,569.71,560.1,552.83,546.82,542.14,540.11,541.58,545.37,548.68,549.15,546.78,543.85,543.01,545.34,549.85,554.01,554.52,548.03,532.35,508.52,481.79,459.69,448.17,449.67,464.37,491.41,526.74,561.1,583.36,587.92,578.53,564.48,553.59,548.63,548.51,551.01,554.27,556.99,557.78,554.81,546.51,532.93,516.34,499.85,485.46,473.6,464.31,458.29,456.62,460.16,469.8,486.63,509.82,533.63,548.04,545.19,526.28,501.47,481.99,472.29,469.38,467.99,465.25,461.21,457.09,454.15,453.41,455.56,461.25,471.6,487.59,507.33,524.65,532.4,528.34,516.93,504.55,494.12,485.64,481.11,486.37,506.26,538.25,571.75,593.88,596.72,580.97,555.18,532.03,522.91,532.44,556.03,582.79,602.15,609.44,606.79,599.74,593.11,588.75,585.99,583.12,578.26,569.53,556.26,541.45,532.31,535.95,552.76,574.56,590.46,594.96,590.47,583.31,578.29,576.74,577.61,579.03,579.39,577.66,573.25,565.19,551.64,530.99,504.17,475.89,452.9,440.63,441.7,457.24,487.39,528.77,572.1,605.2,619.96,616.62]
temp = zip(wt5_time, wt5_temp)
heartrate = zip(wt5_time, wt5_heartrate)
list_plot(temp, axes_labels=["Time", "Temperature"], plotjoined = True)
list_plot(heartrate, axes_labels=["Time", "Heartrate"], plotjoined = True, color="red")

#17. Both of the plots exhibit an oscillating behavior.
trajectrat = zip(wt5_temp, wt5_heartrate)
list_plot(trajectrat, axes_labels=["Temperature", "Heartrate"], plotjoined=True)
##### Good. -HK


#19
favorites = ["Pizza", "Chocolate", "Curry", "Ramen", "Ice Cream"]
for food in favorites:
print food + " is one of my favorite foods."

Pizza is one of my favorite foods. Chocolate is one of my favorite foods. Curry is one of my favorite foods. Ramen is one of my favorite foods. Ice Cream is one of my favorite foods.
#20
for char in "Zoe":
print char
##### Good. -HK

Z o e
#21
squareloop = [15, 27, 39, 84]
for number in squareloop:
print number^2

225 729 1521 7056
#22
mult3 = []
for n in [1, 2, 3, 4, 5]:
mult3.append(3*n)
mult3

[3, 6, 9, 12, 15]
#23
squaredec = []
for n in [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7]:
squaredec.append(n^2)
squaredec
list_plot(squaredec)

[0.0100000000000000, 0.0400000000000000, 0.0900000000000000, 0.160000000000000, 0.250000000000000, 0.360000000000000, 0.490000000000000]
#24
fourfunction = []
for n in [0, 1, 2, 3, 4, 5]:
fourfunction.append(n*100)
list_plot(fourfunction)

#25
timeminutes=[]
for numbers in [0,0.25,0.5,0.75,1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.25,3.5,3.75,4,4.25,4.5,4.75,5,5.25,5.5,5.75,6,6.25,6.5,6.75,7,7.25,7.5,7.75,8,8.25,8.5,8.75,9,9.25,9.5,9.75,10,10.25,10.5,10.75,11,11.25,11.5,11.75,12,12.25,12.5,12.75,13,13.25,13.5,13.75,14,14.25,14.5,14.75,15,15.25,15.5,15.75,16,16.25,16.5,16.75,17,17.25,17.5,17.75,18,18.25,18.5,18.75,19,19.25,19.5,19.75,20,20.25,20.5,20.75,21,21.25,21.5,21.75,22,22.25,22.5,22.75,23,23.25,23.5,23.75,24,24.25,24.5,24.75,25,25.25,25.5,25.75,26,26.25,26.5,26.75,27,27.25,27.5,27.75,28,28.25,28.5,28.75,29,29.25,29.5,29.75,30,30.25,30.5,30.75,31,31.25,31.5,31.75,32,32.25,32.5,32.75,33,33.25,33.5,33.75,34,34.25,34.5,34.75,35,35.25,35.5,35.75,36,36.25,36.5,36.75,37,37.25,37.5,37.75,38,38.25,38.5,38.75,39,39.25,39.5,39.75,40,40.25,40.5,40.75,41,41.25,41.5,41.75,42,42.25,42.5,42.75,43,43.25,43.5,43.75,44,44.25,44.5,44.75,45,45.25,45.5,45.75,46,46.25,46.5,46.75,47,47.25,47.5,47.75,48,48.25,48.5,48.75,49,49.25,49.5,49.75,50,50.25,50.5,50.75,51,51.25,51.5,51.75,52,52.25,52.5,52.75,53,53.25,53.5,53.75,54,54.25,54.5,54.75,55,55.25,55.5,55.75,56,56.25,56.5,56.75,57,57.25,57.5,57.75,58,58.25,58.5,58.75,59,59.25,59.5,59.75,60,60.25,60.5,60.75,61,61.25,61.5,61.75,62,62.25,62.5,62.75,63,63.25,63.5,63.75,64,64.25,64.5,64.75,65,65.25,65.5,65.75,66,66.25,66.5,66.75,67,67.25,67.5,67.75,68,68.25,68.5,68.75,69,69.25,69.5,69.75,70,70.25,70.5,70.75,71,71.25,71.5,71.75,72]:
timeminutes.append(60*numbers)
timeminutes
#26
tempf=[]
for celc in [35.77,37.23,37.32,36.75,36.09,35.68,35.46,35.35,35.3,35.21,35.21,35.25,35.4,35.92,36.52,36.56,36.07,35.6,35.39,35.27,35.09,34.91,34.85,34.81,34.78,34.85,34.88,34.96,35.05,34.96,34.8,34.76,34.73,34.74,35.18,35.91,36.31,36.39,36.12,35.59,35.27,35.17,35,34.69,34.53,34.85,35.49,35.98,35.89,35.34,35,35.37,36.25,36.62,36.51,36.77,37.32,37.76,37.95,38.01,38.03,38.05,38.02,37.95,37.93,37.88,37.69,37.53,37.51,37.56,37.61,37.6,37.6,37.65,37.61,37.51,37.14,36.4,35.72,35.44,35.36,35.27,35.32,35.65,36.2,36.61,36.96,37.33,37.62,37.8,37.86,37.84,37.82,37.81,37.75,37.68,37.63,37.52,37.3,36.82,36.13,35.68,35.52,35.57,35.66,35.62,35.42,35.28,35.64,36.13,36.01,35.61,35.37,35.29,35.2,35.15,35.18,35.18,35.07,35.02,35.05,35,35.02,35.1,35.02,35.08,35.49,35.89,35.78,35.38,35.11,34.96,34.97,35.09,35.07,34.85,34.69,34.99,35.45,35.38,35.02,34.81,34.83,35.34,36.18,36.83,37.14,37.06,36.5,35.94,36.06,36.65,37.23,37.66,37.86,37.84,37.73,37.68,37.67,37.63,37.48,37.3,37.45,37.7,37.78,37.8,37.78,37.71,37.68,37.75,37.75,37.69,37.6,37.48,36.91,36.01,35.3,35.09,35.12,35.21,35.41,35.84,36.59,37.13,37.42,37.64,37.71,37.77,37.91,37.96,37.92,37.87,37.76,37.59,37.27,36.75,36.08,35.53,35.23,35.05,34.95,35.06,35.26,35.35,35.39,35.26,35.13,35.37,36.06,36.48,36.11,35.6,35.31,35.09,34.94,34.96,34.97,34.89,34.88,34.96,35.07,34.99,34.77,34.62,34.67,34.85,35.08,35.5,35.63,35.25,34.9,34.8,34.81,34.85,34.87,34.84,34.92,35.35,36.03,36.64,37.08,37.23,36.85,36.07,35.64,35.75,35.89,36.23,36.96,37.56,37.87,37.97,37.98,37.93,37.81,37.65,37.58,37.62,37.49,36.99,36.27,35.89,36.29,37.03,37.51,37.71,37.77,37.76,37.74,37.79,37.85,37.8,37.78,37.68,37.45,37.31,37.2,36.81,36.15,35.69,35.62,35.64,35.5,35.35,35.4,35.93,36.72,37.25,37.47]:
tempf.append(((9/5)*celc)+32)
tempf

#27
twentyseven=zip(timeminutes, tempf)
list_plot(twentyseven, axes_labels=["Time(Min)", "Temp(F)"], plotjoined=True)

#28
twentyeight=zip(tempf, wt5_heartrate)
list_plot(twentyeight, axes_labels=["Temp", "Heartrate"], plotjoined=True)

#29
plots=[]
slopes=[-5, -4, -3, -2, -1, 0, ]
slopes
for m in slopes:
p=plot(m*x,(x,-10,10),ymin=-50,ymax=50, color="green")
plots.append(p)
a=animate(plots)
show(a,gif=True)

#30
plots=[]
slopes=[-3, -2, -1, 0, 1, 2, 3]
slopes
for m in slopes:
p=plot(m*x,(x,-10,10),ymin=-50,ymax=50, color="green")
plots.append(p)
a=animate(plots)
show(a,gif=True)

[0, 15.0000000000000, 30.0000000000000, 45.0000000000000, 60, 75.0000000000000, 90.0000000000000, 105.000000000000, 120, 135.000000000000, 150.000000000000, 165.000000000000, 180, 195.000000000000, 210.000000000000, 225.000000000000, 240, 255.000000000000, 270.000000000000, 285.000000000000, 300, 315.000000000000, 330.000000000000, 345.000000000000, 360, 375.000000000000, 390.000000000000, 405.000000000000, 420, 435.000000000000, 450.000000000000, 465.000000000000, 480, 495.000000000000, 510.000000000000, 525.000000000000, 540, 555.000000000000, 570.000000000000, 585.000000000000, 600, 615.000000000000, 630.000000000000, 645.000000000000, 660, 675.000000000000, 690.000000000000, 705.000000000000, 720, 735.000000000000, 750.000000000000, 765.000000000000, 780, 795.000000000000, 810.000000000000, 825.000000000000, 840, 855.000000000000, 870.000000000000, 885.000000000000, 900, 915.000000000000, 930.000000000000, 945.000000000000, 960, 975.000000000000, 990.000000000000, 1005.00000000000, 1020, 1035.00000000000, 1050.00000000000, 1065.00000000000, 1080, 1095.00000000000, 1110.00000000000, 1125.00000000000, 1140, 1155.00000000000, 1170.00000000000, 1185.00000000000, 1200, 1215.00000000000, 1230.00000000000, 1245.00000000000, 1260, 1275.00000000000, 1290.00000000000, 1305.00000000000, 1320, 1335.00000000000, 1350.00000000000, 1365.00000000000, 1380, 1395.00000000000, 1410.00000000000, 1425.00000000000, 1440, 1455.00000000000, 1470.00000000000, 1485.00000000000, 1500, 1515.00000000000, 1530.00000000000, 1545.00000000000, 1560, 1575.00000000000, 1590.00000000000, 1605.00000000000, 1620, 1635.00000000000, 1650.00000000000, 1665.00000000000, 1680, 1695.00000000000, 1710.00000000000, 1725.00000000000, 1740, 1755.00000000000, 1770.00000000000, 1785.00000000000, 1800, 1815.00000000000, 1830.00000000000, 1845.00000000000, 1860, 1875.00000000000, 1890.00000000000, 1905.00000000000, 1920, 1935.00000000000, 1950.00000000000, 1965.00000000000, 1980, 1995.00000000000, 2010.00000000000, 2025.00000000000, 2040, 2055.00000000000, 2070.00000000000, 2085.00000000000, 2100, 2115.00000000000, 2130.00000000000, 2145.00000000000, 2160, 2175.00000000000, 2190.00000000000, 2205.00000000000, 2220, 2235.00000000000, 2250.00000000000, 2265.00000000000, 2280, 2295.00000000000, 2310.00000000000, 2325.00000000000, 2340, 2355.00000000000, 2370.00000000000, 2385.00000000000, 2400, 2415.00000000000, 2430.00000000000, 2445.00000000000, 2460, 2475.00000000000, 2490.00000000000, 2505.00000000000, 2520, 2535.00000000000, 2550.00000000000, 2565.00000000000, 2580, 2595.00000000000, 2610.00000000000, 2625.00000000000, 2640, 2655.00000000000, 2670.00000000000, 2685.00000000000, 2700, 2715.00000000000, 2730.00000000000, 2745.00000000000, 2760, 2775.00000000000, 2790.00000000000, 2805.00000000000, 2820, 2835.00000000000, 2850.00000000000, 2865.00000000000, 2880, 2895.00000000000, 2910.00000000000, 2925.00000000000, 2940, 2955.00000000000, 2970.00000000000, 2985.00000000000, 3000, 3015.00000000000, 3030.00000000000, 3045.00000000000, 3060, 3075.00000000000, 3090.00000000000, 3105.00000000000, 3120, 3135.00000000000, 3150.00000000000, 3165.00000000000, 3180, 3195.00000000000, 3210.00000000000, 3225.00000000000, 3240, 3255.00000000000, 3270.00000000000, 3285.00000000000, 3300, 3315.00000000000, 3330.00000000000, 3345.00000000000, 3360, 3375.00000000000, 3390.00000000000, 3405.00000000000, 3420, 3435.00000000000, 3450.00000000000, 3465.00000000000, 3480, 3495.00000000000, 3510.00000000000, 3525.00000000000, 3540, 3555.00000000000, 3570.00000000000, 3585.00000000000, 3600, 3615.00000000000, 3630.00000000000, 3645.00000000000, 3660, 3675.00000000000, 3690.00000000000, 3705.00000000000, 3720, 3735.00000000000, 3750.00000000000, 3765.00000000000, 3780, 3795.00000000000, 3810.00000000000, 3825.00000000000, 3840, 3855.00000000000, 3870.00000000000, 3885.00000000000, 3900, 3915.00000000000, 3930.00000000000, 3945.00000000000, 3960, 3975.00000000000, 3990.00000000000, 4005.00000000000, 4020, 4035.00000000000, 4050.00000000000, 4065.00000000000, 4080, 4095.00000000000, 4110.00000000000, 4125.00000000000, 4140, 4155.00000000000, 4170.00000000000, 4185.00000000000, 4200, 4215.00000000000, 4230.00000000000, 4245.00000000000, 4260, 4275.00000000000, 4290.00000000000, 4305.00000000000, 4320] [96.3860000000000, 99.0140000000000, 99.1760000000000, 98.1500000000000, 96.9620000000000, 96.2240000000000, 95.8280000000000, 95.6300000000000, 95.5400000000000, 95.3780000000000, 95.3780000000000, 95.4500000000000, 95.7200000000000, 96.6560000000000, 97.7360000000000, 97.8080000000000, 96.9260000000000, 96.0800000000000, 95.7020000000000, 95.4860000000000, 95.1620000000000, 94.8380000000000, 94.7300000000000, 94.6580000000000, 94.6040000000000, 94.7300000000000, 94.7840000000000, 94.9280000000000, 95.0900000000000, 94.9280000000000, 94.6400000000000, 94.5680000000000, 94.5140000000000, 94.5320000000000, 95.3240000000000, 96.6380000000000, 97.3580000000000, 97.5020000000000, 97.0160000000000, 96.0620000000000, 95.4860000000000, 95.3060000000000, 95, 94.4420000000000, 94.1540000000000, 94.7300000000000, 95.8820000000000, 96.7640000000000, 96.6020000000000, 95.6120000000000, 95, 95.6660000000000, 97.2500000000000, 97.9160000000000, 97.7180000000000, 98.1860000000000, 99.1760000000000, 99.9680000000000, 100.310000000000, 100.418000000000, 100.454000000000, 100.490000000000, 100.436000000000, 100.310000000000, 100.274000000000, 100.184000000000, 99.8420000000000, 99.5540000000000, 99.5180000000000, 99.6080000000000, 99.6980000000000, 99.6800000000000, 99.6800000000000, 99.7700000000000, 99.6980000000000, 99.5180000000000, 98.8520000000000, 97.5200000000000, 96.2960000000000, 95.7920000000000, 95.6480000000000, 95.4860000000000, 95.5760000000000, 96.1700000000000, 97.1600000000000, 97.8980000000000, 98.5280000000000, 99.1940000000000, 99.7160000000000, 100.040000000000, 100.148000000000, 100.112000000000, 100.076000000000, 100.058000000000, 99.9500000000000, 99.8240000000000, 99.7340000000000, 99.5360000000000, 99.1400000000000, 98.2760000000000, 97.0340000000000, 96.2240000000000, 95.9360000000000, 96.0260000000000, 96.1880000000000, 96.1160000000000, 95.7560000000000, 95.5040000000000, 96.1520000000000, 97.0340000000000, 96.8180000000000, 96.0980000000000, 95.6660000000000, 95.5220000000000, 95.3600000000000, 95.2700000000000, 95.3240000000000, 95.3240000000000, 95.1260000000000, 95.0360000000000, 95.0900000000000, 95, 95.0360000000000, 95.1800000000000, 95.0360000000000, 95.1440000000000, 95.8820000000000, 96.6020000000000, 96.4040000000000, 95.6840000000000, 95.1980000000000, 94.9280000000000, 94.9460000000000, 95.1620000000000, 95.1260000000000, 94.7300000000000, 94.4420000000000, 94.9820000000000, 95.8100000000000, 95.6840000000000, 95.0360000000000, 94.6580000000000, 94.6940000000000, 95.6120000000000, 97.1240000000000, 98.2940000000000, 98.8520000000000, 98.7080000000000, 97.7000000000000, 96.6920000000000, 96.9080000000000, 97.9700000000000, 99.0140000000000, 99.7880000000000, 100.148000000000, 100.112000000000, 99.9140000000000, 99.8240000000000, 99.8060000000000, 99.7340000000000, 99.4640000000000, 99.1400000000000, 99.4100000000000, 99.8600000000000, 100.004000000000, 100.040000000000, 100.004000000000, 99.8780000000000, 99.8240000000000, 99.9500000000000, 99.9500000000000, 99.8420000000000, 99.6800000000000, 99.4640000000000, 98.4380000000000, 96.8180000000000, 95.5400000000000, 95.1620000000000, 95.2160000000000, 95.3780000000000, 95.7380000000000, 96.5120000000000, 97.8620000000000, 98.8340000000000, 99.3560000000000, 99.7520000000000, 99.8780000000000, 99.9860000000000, 100.238000000000, 100.328000000000, 100.256000000000, 100.166000000000, 99.9680000000000, 99.6620000000000, 99.0860000000000, 98.1500000000000, 96.9440000000000, 95.9540000000000, 95.4140000000000, 95.0900000000000, 94.9100000000000, 95.1080000000000, 95.4680000000000, 95.6300000000000, 95.7020000000000, 95.4680000000000, 95.2340000000000, 95.6660000000000, 96.9080000000000, 97.6640000000000, 96.9980000000000, 96.0800000000000, 95.5580000000000, 95.1620000000000, 94.8920000000000, 94.9280000000000, 94.9460000000000, 94.8020000000000, 94.7840000000000, 94.9280000000000, 95.1260000000000, 94.9820000000000, 94.5860000000000, 94.3160000000000, 94.4060000000000, 94.7300000000000, 95.1440000000000, 95.9000000000000, 96.1340000000000, 95.4500000000000, 94.8200000000000, 94.6400000000000, 94.6580000000000, 94.7300000000000, 94.7660000000000, 94.7120000000000, 94.8560000000000, 95.6300000000000, 96.8540000000000, 97.9520000000000, 98.7440000000000, 99.0140000000000, 98.3300000000000, 96.9260000000000, 96.1520000000000, 96.3500000000000, 96.6020000000000, 97.2140000000000, 98.5280000000000, 99.6080000000000, 100.166000000000, 100.346000000000, 100.364000000000, 100.274000000000, 100.058000000000, 99.7700000000000, 99.6440000000000, 99.7160000000000, 99.4820000000000, 98.5820000000000, 97.2860000000000, 96.6020000000000, 97.3220000000000, 98.6540000000000, 99.5180000000000, 99.8780000000000, 99.9860000000000, 99.9680000000000, 99.9320000000000, 100.022000000000, 100.130000000000, 100.040000000000, 100.004000000000, 99.8240000000000, 99.4100000000000, 99.1580000000000, 98.9600000000000, 98.2580000000000, 97.0700000000000, 96.2420000000000, 96.1160000000000, 96.1520000000000, 95.9000000000000, 95.6300000000000, 95.7200000000000, 96.6740000000000, 98.0960000000000, 99.0500000000000, 99.4460000000000]
[-5, -4, -3, -2, -1, 0]
[-3, -2, -1, 0, 1, 2, 3]

#31
plots=[]
slopes=[1]
slopes
for m in slopes:
p=plot(m*x,(x,-10,10),ymin=-5,ymax=5, color="green")
plots.append(p)
a=animate(plots)
show(a,gif=True)
##### This loop is keeping a constant slope but is not changing the y-intercept. It should be something like:
plots=[]
ints=[-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5]
for b in ints:
p=plot(1*x+b,(x,-10,10),ymin=-5,ymax=5, color="green")
plots.append(p)
a=animate(plots)
show(a,gif=True)
##### Remember that the equation of a line is y=m*x+b and here we want to change the "b", not the "m"
##### (-2 points) -HK

[1]