,
, ;
, or :
FLK-E231215 yr =np.array(ys)
216 y = yr.astype(float)
217 ys = np.reshape(y , (100, 1))
218 plt.plot(xs ,ys, 'r')219
220 # show the plot
221 plt.show()
79 function = input("Type in your function: ")
80
81 # 100 linearly spaced numbers
82 x = np.linspace(-5,5,100) 83
84 # the function, which is y = x^2 here
85 try:
79 function = input("Type in your function: ")
80
81 # 100 linearly spaced numbers
82 x = np.linspace(-5,5,100) 83
84 # the function, which is y = x^2 here
85 try:
1
2for(i) in [1,9,0,13,312,16,0,0,0,0]:3 x = i**2 +(2*i)+1
4 print(x)
1
2for(i) in [1,9,0,13,312,16,0,0,0,0]:3 x = i**2 +(2*i)+1
4 print(x)
There should be whitespace after the characters ,
, ;
, and :
.