find thedensity and mass at 3200 using trapezoidalmethodThe density, p, of the Earth varies with the radius, r. The following table gives the approximate density at different radii: r(km)8 800 1200 1400 2000 3000 3400 3600 4000 500055006370 (kg/m3)13000 12900 12700 12000 11650 10600 9900 5500 5300 4750 4500 3300 The mass of the Earth can be calculated by: 6370 dr Interpolate the density, ρ(r), of the Earth using the data from the above table and MATLABs built-in interpl function with the spline option. Plot the solution Then calculate the mass of the Earth using the interpolated data and trapezoidal method. What is the density of the Earth at a distance of 3200 km from the center of the globe. What is this value if we use the interpolation with the linear functions.

The density, p, of the Earth varies with the radius, r. The following table gives the approximate density at different radii: r(km)8 800 1200 1400 2000 3000 3400 3600 4000 500055006370 (kg/m3)13000 12900 12700 12000 11650 10600 9900 5500 5300 4750 4500 3300 The mass of the Earth can be calculated by: 6370 dr Interpolate the density, ρ(r), of the Earth using the data from the above table and MATLAB’s built-in interpl function with the spline option. Plot the solution Then calculate the mass of the Earth using the interpolated data and trapezoidal method. What is the density of the Earth at a distance of 3200 km from the center of the globe. What is this value if we use the interpolation with the linear functions. Show transcribed image text