Integral Solving

There are many functions whose integral cannot be expressed through elementary functions. For integrals of such functions, various approximate methods are used, the essence of which is that the integrand function is replaced "by a close" function, the integral of which is expressed through elementary functions.
The program uses the following calculation methods: Rectangle Method, Average Method, Trapezoid Method, Simpson's Method.

When entering a function, use the following notations:
 
+ - addition;Math.log(x) - natural logarithm;
- - subtraction;Math.cos(x) - cosine;
* - multiplication;Math.sin(x) - sine;
/ - division;Math.exp(x) - exponent;
Math.sqrt(x) - square root;Math.pow(x,n) - raising x to the power of n;

Example: x^4*cos(x^2+x+1) corresponds to Math.pow(x,4)*Math.cos(Math.pow(x,2)+x+1)

Function

Lower integration boundary

Upper integration boundary

Methods
Rectangles
Averages
Trapezoids
Simpson's
3/8
Solution
By steps
By accuracy
Number of steps
Accuracy