def fstring(c):
	"""Pass the coefficients and return a string corresponding to the ploynomial"""
	
	order = len(c)
	fx = "$f(x) = x^%d" %(order)
	for n in xrange(order-1):
		nn = order - 1 - n 
		fx += " + %1.3f x^%d" %(c[nn],nn)
	fx += " + %1.3f$" %(c[0])
	
	return fx
Pass the coefficients and return a string corresponding to the ploynomial
recipes/Python/576501_Polynomial_explorer/recipe-576501.py