def dmp_eval_tail(f, A, u, K):
 if (not A):
  return f
 if dmp_zero_p(f, u):
  return dmp_zero((u - len(A)))
 e = _rec_eval_tail(f, 0, A, u, K)
 if (u == (len(A) - 1)):
  return e
 else:
  return dmp_strip(e, (u - len(A)))

def dmp_eval_tail ( f , A , u , K ) : if ( not A ) : return f if dmp_zero_p ( f , u ) : return dmp_zero ( ( u - len ( A ) ) ) e = _rec_eval_tail ( f , 0 , A , u , K ) if ( u == ( len ( A ) - 1 ) ) : return e else : return dmp_strip ( e , ( u - len ( A ) ) )
evaluate a polynomial at x_j = a_j .