how to get the distance between to points on earth in Swift?

The distance from the sun to the earth at different points in the year?

  • I am looking to do my Algebra coursework on the distance of the earth from the sun as this would create a trigonomentric curve, can anyone give me some data for this as im finding it hard to find it myself.

  • Answer:

    The following information is from Wikipedia The Earth's semi major axis is 1.000 AU, its perihelion distance is 0.9833 AU, and its aphelion distance is 1.0167 AU. Where 1 AU = 149.6 million kilometer. Perihelion occurs around January 4th and aphelion around July 4th. The eccentricity is found from perihelion = A - Ae, where A is the semi major axis eccentricity e = 1.000 - 0.9833/1.000 = 0.0167 from e = √((a^2 -b^2)/a^2) b, the semi minor axis = 0.9999 AU You can graph this (x/a)^2 + (y/b)^2 =1 The Earth's average velocity in its orbit is 0.9856° per day. The Earth's instantaneous velocity is found from V^2 = GM sun/R where R is the Earth's orbital radius. When the Earth is at perihelion the velocity per day will be 0.9868° per day. At aphelion the velocity per day will be 0.9846°

Jack at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.