Course Solutions Uncategorized (Solved) : File Rectanglerulem Function Rectanglerule Fun B N Dx B N 1 00 1 N 1 X 05 Dx Fun X End Dx Q32904228 . . . .

(Solved) : File Rectanglerulem Function Rectanglerule Fun B N Dx B N 1 00 1 N 1 X 05 Dx Fun X End Dx Q32904228 . . . .

 

Problem 4: Find the value of the integral 10 1-1 (cos x + x2 e-x2)dx 0 using the rectangle rule with spacing Ax-001. Use the code for the rectangle quadrature rule developed in the class.

File RectangleRule.m
function [ I ] = RectangleRule ( Fun, a, b, N )
dx = ( b ‐ a ) / ( N ‐ 1 );
I = 0.0;
for i = 1 : N‐1
x = a + ( i ‐ 0.5 ) * dx ;
I = I + Fun ( x );
end
I = I * dx ;
end

Problem 4: Find the value of the integral

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Subway 20 000 Outlets Us Planning New Restaurant Buffalo New York Three Locations Consider Q31859649(Answered) : Subway 20 000 Outlets Us Planning New Restaurant Buffalo New York Three Locations Consider Q31859649

<p>Subway, with more than​ 20,000 outlets in the​ U.S., is planningfor a new restaurant in​ Buffalo, New York. Three locations arebeing considered. The following table gives the factors for eachsite.                                                                                   FactorWeight