to find n in trapezoidal rule

2 views (last 30 days)
jakv
jakv on 4 Dec 2013
i have a function f and trapezoidal code
syntax
function Integral = trap (function, a, b, n)
the function is complex form and i want to find "n" that the result of area below of the function with the limit a to b has a maximum error.
can anybody help me ? what the methods or code that i can be used to solve my problems?

Answers (0)

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!