Jump to content

Numerical integration: Difference between revisions

m
Moved to Arith cat
m (Moved to Arith cat)
Line 1:
{{task|Arithmetic operations}}
Write functions to calculate the definite integral of a function (<tt>f(x)</tt>) using rectangular (left, right, and midpoint), trapezium, and Simpson's methods. Your functions should take in the upper and lower bounds (<tt>a</tt> and <tt>b</tt>) and the number of approximations to make in that range (<tt>n</tt>). Assume that your example already has a function that gives values for <tt>f(x)</tt>.
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.