Write an algorithm to compute integration using Simpson's 1/3 rule. Evaluate integration of \[ \quad \quad \quad \quad ∫^30(3x2+2x−5)dx \] using Simpson's 1/3 rule.
Marks: 5
Year: 2021 Final TU FOHSS
(A) Algorithm: Simpson’s 1/3 Rule Step 1: Read the limits of integration \(a, b\) and the number of subintervals \(n\) (Note: \(n\) must be even) Step 2: Compute step size \[ h = \frac{b-a}{n} \