Anonymous user
Numerical integration: Difference between revisions
→{{header|Python}}
(+ Pascal) |
|||
Line 785:
def integrate( f, a, b, steps, meth):
h = (b-a)/steps
ival = h * sum
return ival
|
(+ Pascal) |
|||
Line 785:
def integrate( f, a, b, steps, meth):
h = (b-a)/steps
ival = h * sum
return ival
|