# Modulus overflow and Chebyshev approximation

**URL:** <https://openfhe.discourse.group/t/modulus-overflow-and-chebyshev-approximation/2088>\
**Category:** FHE Questions\
**Created:** [July 8, 2025, 9:05am UTC](https://openfhe.discourse.group/t/modulus-overflow-and-chebyshev-approximation/2088 "2025-07-08T09:05:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ilemenn](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@ilemenn](https://openfhe.discourse.group/u/ilemenn)\
**Post date:** [July 17, 2025, 8:09am UTC](https://openfhe.discourse.group/t/modulus-overflow-and-chebyshev-approximation/2088/3 "2025-07-17T08:09:44Z")

</div>

Hello,

Thank you for your answer. The notion of modulus overflow is clearer now.

However, I still do not understand why modulus overflow happens during my Chebyshev interpolation. Indeed, to perform this operation I chose the multiplicative depth according to the table here : [openfhe-development/src/pke/examples/FUNCTION\_EVALUATION.md at main · openfheorg/openfhe-development · GitHub](https://github.com/openfheorg/openfhe-development/blob/main/src/pke/examples/FUNCTION_EVALUATION.md) . I set my bounds to values such as [0.5; 3] (not too close to zero and over a small range) and varied the degree between 5 and 27. But I get only negative values and they are all very close together (similar to [Weird behavior on Chebyshev](https://openfhe.discourse.group/t/weird-behavior-on-chebyshev/630)). I solved that by increasing by one the multiplicative depth recommended in the table.

Still, many questions arise. Is there something wrong in my understanding of the table ? Why would a modulus overflow happen specifically when I perform a Chebyshev interpolation (function: 1/sqrt(x)) ? (By the way, if you have any clue about how the numbers in the table were obtained, do not hesitate to share.)

Thanks a lot for your help.

---

_[View the full topic](https://openfhe.discourse.group/t/modulus-overflow-and-chebyshev-approximation/2088)._
