Integral, Derivatives, Machine Learning, Python, Numerical Approximation.
between x=1 and x=2. Since it is easier to calculate the integral as analytical we can compare the results. def x_squared(x): return x**2 def analytical_integrated_x_squared(a, b): return 1/3 * b**3 - 1/3 * a**3 analytical_integrated_x_squared(1, 2) # Returns 2.333333333333333 integral(x_squared,