def f(x,c):
	"""Pass in x (a scalar or vector) and pass in c (a vector) and this function will compute 
f(x) = x**n + c(n-1)*x**(n-1) ... + c(1)*x + c(0)"""
	
	N = len(c)
	y = M.zeros(len(x))
	for n in xrange(N):
		y += c[n]*x**n
	y += x**N
		
	return y
Pass in x (a scalar or vector) and pass in c (a vector) and this function will compute 
f(x) = x**n + c(n-1)*x**(n-1) ... + c(1)*x + c(0)
recipes/Python/576501_Polynomial_explorer/recipe-576501.py