# Revision history [back]

### How to calculate the value of polynomials with large coefficients

R = ZZ['x']
x = R.gen()


Under this setup, I define a function like f(x) = 122313*x^23 + 445*x^12 + 2013*x + 2345 of high degree with large coefficients. Then, I define

def h(x):
return diff(f(x),x)


Then, Sage cannot compute the value of h, like h(5),h(10) etc. It returns 0 somehow. How can I fix this problem and get the values of the function h?