def read_func(name):
ans = []
fp = open(name,'r')
for line in fp:
for num in line.strip().split():
ans.append(float(num))
fp.close()
return ans