Excel-VBA Program for the Numerical Integration of Any ...



Excel-VBA Program for the Numerical Integration of Any Generalized Function

Construct an Excel-VBA program that will perform a numerical integration of any generalized function using the trapezoid rule or Simpson’s rule. Test your program with the function y(x) = 2x2 - 3x + 4 over the x-interval of xo ≡ a = –1 and xf ≡ b = 3. Vary n, the number of intervals by which the x-interval is divided into, to take on the values 20, 40, and 100, and, for each of the n-values, compare both your numerical integral results with the analytical result.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download