Numerical Integration
Numerical Integration
(OP)
I am trying to figure out how to do numerical integration, using Simpson's Rule. I could easily do it with Basic, but dang Vista won't run GW Basic. I could also do it with about 1000 rows and then sum it up, but want to avoid that.
It is simply evaluate f(x)*constant, store it, recalculate f(x+dx)*constant, add that to 1st value, recalculate (f(x+dx+dx)*constant, add that, on and on till it reaches the upper limit.
Is there a way to do it using the automatic iteration feature (under Tools)? It would be a sort of FOR TO type statement. Goal Seek won't work, as I am just trying to sum up a lot of calculations, not find a root.
It is simply evaluate f(x)*constant, store it, recalculate f(x+dx)*constant, add that to 1st value, recalculate (f(x+dx+dx)*constant, add that, on and on till it reaches the upper limit.
Is there a way to do it using the automatic iteration feature (under Tools)? It would be a sort of FOR TO type statement. Goal Seek won't work, as I am just trying to sum up a lot of calculations, not find a root.





RE: Numerical Integration
Good luck,
Latexman
RE: Numerical Integration
but if you are keen on Basic then VBA is worth learning.
h
or
http://ww
Cheers
Greg Locock
SIG:Please see FAQ731-376: Eng-Tips.com Forum Policies for tips on how to make the best use of Eng-Tips.
RE: Numerical Integration
RE: Numerical Integration
It may be downloded from:
htt
Doug Jenkins
Interactive Design Services
www.interactiveds.com.au
RE: Numerical Integration
http://mes
RE: Numerical Integration
The integration as was mentioned can easily be performed in excel or vba.
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: Numerical Integration
trashcanman complained that GWbasic doesn't run under Vista therefore looked for a spreadsheet alternative. Under DOSbox GWbasic probably may run in Vista.
RE: Numerical Integration
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Numerical Integration
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: Numerical Integration
QuickBASIC runs under Vista -- QuickBASIC should take GWBASIC with no problem (just cut and paste)...
Thanks,
Gordan
http://engware.i-dentity.com
RE: Numerical Integration