Evaluate cosine on a ciphertext
eval_cos(ct, a, b, degree)A Ciphertext holding the encrypted, slot-wise cosine of ct,
approximated by a Chebyshev polynomial of the given degree on the
interval [a, b]. Accuracy degrades outside that interval, and the
result sits ceiling(log2(degree)) + 1 levels below ct.
A Ciphertext
Lower bound of the approximation interval
Upper bound of the approximation interval
Chebyshev polynomial degree