1. Engineering
  2. Computer Science
  3. by matlab find the value of the mass of the...

Question: by matlab find the value of the mass of the...

Question details

by MATLAB: find the value of the mass of the earth if we use the interpolation with the SPLINE function (with plotting) and density at 3200 km radius from the center.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 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.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution