Question: Construct a MATL B (numerical solver) function that performs the numerical integration using the right Riemann sum. The formula (algorithm) for the composite right Riemann
Construct a MATL B (numerical solver) function that performs the numerical integration using the right Riemann sum. The formula (algorithm) for the composite right Riemann sum for a set of N + 1 equally spaced data points (or discretized domain points) is: I = integral_a^b f(x) dx sigma_k-2^N+1 f(x_k) h This numerical solver has the following input/output structure: function I = RightRiemannSum (fun, a, b, N) where fun is an anonymous function and x is a vector of the values tor the discretized domain. Note that h = x_k+1 - x_k is the step size of the interval between x_k and x_k+1. b) The force per unit length f that is exerted by the wind on a 24 ft tall sail as a function of its height y is given by: f= 160 y/y + 4 e^-y/g lb/ft Estimate the total force F on the sail calculated by: F = integral_0^24 f dy Determine the total force by applying the right Riemann sum with 10 subintervals (N = 10). Compare your result with that obtained by the MATL B built-in function integral
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
