The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a user-defined MATLAB function for integration of a function
(x) in the domain [-1, 1)
![]()
with four-point Gauss quadrature. For the function name and arguments use I=GaussQuad4 (Fun), where Fun is a name for the function that is being integrated. It is a dummy name for the function that is imported into Gaus sQuad4. The actual function that is integrated should be written as an anonymous or a user-defined function that calculates the value of f(x) for a given value of x. It is entered as a function handle when GaussQuad4 is used. The output argument I is the value of the integral. Use GaussQuad4 to solve Problem 9.9.
Problem 9.9
The area of the shaded region shown in the figure can be calculated by
![]()
Evaluate the integral using the following methods:
(a) Simpson's 1/3 method. Divide the whole interval into four subintervals.
(b) Simpson's 3/8 method. Divide the whole interval into nme subintervals.
(c) Three-point Gauss quadrature. Compare the results and discuss the reasons for the differences.

Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------