- Function For Integration Of A Function With The Composite 1 3 Name The And Arguments You Function Use As 1 Write A Mat 1 (60.12 KiB) Viewed 70 times
function for integration of a function with the composite 1/3 name the and arguments You function use as (1) Write a MAT
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
function for integration of a function with the composite 1/3 name the and arguments You function use as (1) Write a MAT
function for integration of a function with the composite 1/3 name the and arguments You function use as (1) Write a MATLAB user-defined method. may I=Simpson 13('FunName',a,b). FunName' is a string with the name of a function file that calculates the value of the function to be integrated for a given value of x. a and b are the limits of integration, and I is the value of the integral. The integration function calculates the value of the integral in iterations. In the first iteration the interval is divided into two subintervals. In every iteration that follows, the number of subintervals is doubled. The iterations stop when the difference in the value of the integral between two successive iterations is smaller than 1%. (2) Use the developed user-defined function to: (a) Evaluate the integrals: = 1, - "sin?xds and I, - "sin xao The exact value of the integrals is (b) Evaluate the integrals: 1₁ = π/2, and 1₂ S_₁√1-x² dx = KIN √√1-x². = π. The equation of a circle with a radius of 1 (unit circle), and its area, A are given by: x² + y² = 1 A = π