Numerical integration: Difference between revisions

Content deleted Content added
m →‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.
Line 3,755:
A faster Simpson's rule integrator is
<lang python>def faster_simpson(f, a, b, steps):
h = (b-a)/float(steps)
a1 = a+h/2
s1 = sum( f(a1+i*h) for i in range(0,steps))