(1) Defne a Python function
trapeze(f,a,b,n)
to compute the integral of a function ܩ over an interval [ܤ ,ܥ [according to the composite trapezoidal rule for ܰ subintervals. Avoid repeated computations of the individual function values ܩ.(ܺ)
(2) Use the trapeze function to approximate the integral ܒ∫ =∶�0 sin(such
that the result becomes correct to 6 decimal places. To do this, use the exact value
ܒ = 2, which results from the evaluation of the antiderivative −cos of sin.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here