
Originally Posted by
UDaytonFlyer
Hello all,
I'm trying to figure out a code in Excel's VBA (visual basic, excel's macro programming thing) that will take input from an excel spreadsheet and perform the Simpson's Rule on a quadratic function. Ex: Take a,b,c as input from the spreadsheet (for the quadratic ax^2+bx+c=0) It also has to take the upper limit and lower limits of the integral (A=0, B=5) and the number of integers to use (n=100, etc) from the spreadsheet and give the answer as output on the spreadsheet.
I know this probably sounds confusing, but I could really really use some help with this, I figured out the traprule already, just have no clue about the Simpson's Rule. Thanks!