This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: znew = zbar/r; z % Find latitude and longitude of spherical centroid on the surface of the % earth: % pheta = asin(znew); phi = acos((xnew)/(cos(pheta))); pheta = pheta*(180/pi); phi = phi*(180/pi); p % Display latitude and longitude: % disp('The spherical centroid of the USA population:') d disp(sprintf('Latitude: %5.10f N',pheta)) disp(sprintf('Longitude: %5.10f W',phi)) d % PLEASE see changePop file for explanation of fcn and how it was used. % There is little change in the centroid position caused by adding % one more person to ithaca NY 14850. The N latitude does goes from % 37.6986002106 to 37.6986002275;the very % tiny increase makes sense since ithaca is north of centroid point. The % distance is less than an inch. %...
View Full Document
- Fall '07
- spherical centroid, Young CS 100M