Hello! I need a suggestion. I have defined a Simpson algorithm in C# but there is one problem in general integration. When selecting the number of subintervals to choose (n) I have no clue what method to use to be adjusted to any data scale. For example I have to integrate a function X^2 on an interval [-5,5] how many subintervals should I chose? I need a general response (not in this particular case) since I'm writing a code for it. Thank you