'Evaluate polynomials with imaginary numbers

I'm trying to calculate 19v^2 + 49v + 8 to the 67th power over the finite field Z/67Z using Sage where v = sqrt(-2).

Here's what I have so far (using t instead of v):

R.<t> = PolynomialRing(GF(67))
poly = (19 * (t^2) + 49*t + 8)
poly^67

This works fine. But now, I want to evaluate the resulting polynomial with the value sqrt(-2).

I'm not sure how to proceed. Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source