Dear all,
Does anyone have some (relatively) simple code for calculating the Simpson's Rule for integration?
Many thanks in advance.
Regards,
John
Dear all,
Does anyone have some (relatively) simple code for calculating the Simpson's Rule for integration?
Many thanks in advance.
Regards,
John
Here's another option.
There are two functions. SimpsonInt is the integrator, and it can be used as a worksheet function. Func is the function to be integrated. What's there now is arbitrary; change it to whatever you need. To test with the existing function, try
=SimpsonInt(0, PI()/2, n) for several values of n (the correct answer is 1)
Holler back if you need help.
![]()
Please Login or Register to view this content.
Last edited by shg; 06-15-2008 at 05:45 PM.
Sorry for bumping, but I really have to ask.
Can you please tell me what's the hashtags for after the numerical values (4# and 2#)? Thanks.
Type declaration character for a Double.
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks