vera.lgbt

The Comprehensive Guide to Astrology Math

The Comprehensive Guide to Astrology Math

Analysis, explanation, and diagramming by Vera Gonzalez

This article is a work in progress. Inaccuracies may be present in both explanation and diagramming.

This article is targeted towards an audience that wants to deeply understand how real world Astronomy directly results in the divinatory information read by Astrologers around the globe. This is primarily presented in a mathematical and conceptual framework, but some components require pseudocode to be understood in their modern praxis.

As part of my creation of the IOS App Familiar Spirit, I created an Astronomy / Astrology math library from scratch in Swift. Doing so took a great deal of research, conceptualization, and code. The fruits of that labor are condensed for you here.

No prior knowledge of Astronomy is assumed, so this article is very verbose. I encourage you to digest it in parts, even taking your own notes.

Great inspiration in diagramming has been pulled from The Elements of House Division by Ralph William Holden, a masterful work of Astrology math that has been largely forgotten by contemporary Astrologers. I was only able to read it by visiting the Library of Congress, but it clarified some of the higher complexity House Division mathematics. The Astrological community owes him a great debt for preserving this knowledge.

To see more of my work, or to contact me, visit vera.lgbt.


Fundamental Building Blocks

This section will provide concepts that are essential to a complete understanding of all subsequent sections. Do not skip these concepts if you have any plans to implement Astrology Math in a codebase of your own.

Angle Measurement

Let us define an AstroAngle as an angle that is represented internally in one of the following forms.

degrees:

Familiar to anyone who has taken Geometry, degrees divide the circle into 360 even components. A degree is denoted using the ° symbol. The result is a system that lends itself to highly intuitive angle math, an innovation that we can thank the Sumerians for.

minutes:

A ‘minute’ is 160th of a degree. It is denoted using the ′ symbol.

seconds:

A ‘second’ is 160th of a minute. It is denoted using the ″ symbol.

Degree based AstroAngles can be initialized in the form AstroAngle(degrees:𝑥) or the form AstroAngle(degrees:𝑥,minutes:𝑦,seconds:𝑧).

hours:

Unlike degrees, hours divide the circle into 24 even components. An hour is denoted using the symbol h. The result is that 1h=15°. While less common than degrees, it is still used widely in Astronomy by convention.

minutes:

A ‘minute’ is 160th of an hour. It is denoted using the m symbol.

seconds:

A ‘second’ is 160th of a minute. It is denoted using the s symbol.

Hour based AstroAngles can be initialized in the form AstroAngle(hours:𝑥) or the form AstroAngle(hours:𝑥,minutes:𝑦,seconds:𝑧).

Note that traditionally, we do not employ radians in our computations. If you are attempting to implement this math in software, that might change, but fundamentally you must also be able to work with these value forms.

Let us also define a method bound which will modify a given value to keep it within the expected range of an AstroAngle. While extremely simple, this method is also extremely useful in performing Astronomy math.

bound(𝜃):

while𝜃<360°:
𝜃=𝜃+360°

while𝜃>360°:
𝜃=𝜃−360°

return𝜃

Great Circles & Normal Vectors

There is a great deal of spherical trigonometry in the matter of Astrology math. Two concepts fundamental to an understanding of that trigonometry are the notions of Great Circles and Normal Vectors. Great Circles are any circles that, when drawn on a sphere, bisect that sphere into two equal halves. Normal Vectors have a more nuanced meaning in other fields such as computer graphics and game design, but for our purpose they can be thought of simply as Unit Vectors which are perpendicular to a given Great Circle. The reason we care deeply about these concepts is because our Coordinate Systems primarily employ Great Circles as their reference points. Additionally, by taking the Cross Product of any two Normal Vectors, we can find the intersections of the Great Circles they correspond to. This is an essential methodology in the matter of House Division.

Great Circles and Normal Vectors

Ecliptic Plane & Zodiacal Signs

Recall for a moment that in diagrams of the Solar System we see that although each planet exists in a different orbit, they all roughly share a plane. If we imagine this plane as our ‘ground’ it can be easily seen that no planet moves drastically “above” or “below” another.

The Zodiacal Signs lie on the Ecliptic Plane, and simply divides it as a circle into twelve equal sections of 30° each.

The locations of planets seen plotted on a traditional horoscope do not showcase planetary location through Heliocentric orbit, but instead apparent location from a Geocentric perspective.

Here, I illustrate an example chart and the solar system in the same image such that the relationship between the the Ecliptic Plane and the Astrological Chart can be understood.

Let me also note that traditionally, the Horizon is made to appear completely horizontal on a Chart, but this convention is being broken here to showcase that the angle of the Horizon does not need to match the angle with which the Earth faces the Sun.

Ecliptic Projection

Solstices & Equinoxes

Essential to an understanding our Coordinate Systems is an understanding of the Equinoxes. Put simply, Solar Equinoxes occur when the apparent position of the Sun is directly above the Earth’s Equator. In other words, the moments in time where the Earth’s Equator is pointing directly towards the Sun. This happens twice a year. By contrast, the Solstices occur when Earth’s Equator is pointing as far from the sun as is possible. This also happens twice a year.

Solstices Equinoxes

From this diagram it can be gleamed that the tilt of the Earth’s Axis is the cause of this behavior. Because this behavior directly dictates Earth’s seasons, it should be no surprise that these locations on the Ecliptic Plane became essential reference points when discussing Astronomical phenomena, even in antiquity.

The Celestial Sphere & Diurnal Motion

The Celestial Sphere represent a way on conceptualizing the locations of heavenly bodies in the night sky. Under this conception, the Earth is enclosed by a much larger, concentric sphere. On this sphere, we see stars, the Moon, the Sun, and all other heavenly bodies. This is the intuitive and original understanding of the night sky. Diurnal Motion refers to the apparent movement of stars and other bodies through this sphere as a product of the Earth’s axial rotation.

Celestial Sphere Diurnal Motion

By performing a long exposure photograph focused on Polaris, the North Star, we can see that all other stars trace concentric circles around the Earth’s axis as it rotates, regardless of the location of the Observer. This is Diurnal Motion.

Star Trails

Precession

When Solstices & Equinoxes were first employed as reference points, the phenomenon of Precession was not known. It was assumed implicitly that the locations of the Solstices & Equinoxes on the Ecliptic Plane were unchanging, and these became the locations upon which all other Astrological data was projected. The Vernal Equinox was dubbed “Aries 0°” while the Autumnal Equinox was dubbed “Libra 0°”, named by the constellations they were home to.

Precession describes the movement of the Earth’s axis through the Precessional Circle, which can be conceptually likened to the wobbling of a top. This wobble is a slow one, completing a full circle once every 25,788 years. It should be no surprise, then, that the discrepancy was not noticed for some time. In the meanwhile, these reference points and the associated constellation names had already cemented themselves in Astrological tradition. This is the discrepancy between “Tropical” and “Sidereal” Astrology. Tropical Astrology employs the original reference point, the Vernal Equinox, while Sidereal Astrology focuses on the point in the night sky where the Vernal Equinox once was as its reference point: The Aries Constellation.

Additionally, note that as a result of this movement, the so called North Star changes over time. Right now, our North Star is Polaris, but will become Deneb in about 8,000 years. Eventually, it will become Polaris again.

Precession

Sidereal Days & Solar Days

Sidereal Time is an important concept to understand in the context of Astronomical observation. When we typically think of a “Day”, we mean a Solar Day. This is the time it takes for the Sun to move from directly overhead a full 360° back to directly overhead. By contrast is the Sidereal Day, which describes the duration for a fixed star (far further away from us that our Sun) to reach the same point in the sky. The discrepancy between these two values is a direct product of our Orbital Movement around the Sun. Our angle both to our Sun and distant stars changes as a result of this movement, but because the distant stars are any number of light years away, the change in their apparent angle is essentially zero.

When describing Astronomical observations of fixed stars, Observers often employ the use of Local Sidereal Time rather than of Greenwich Mean Time because it enables a single “Day” to correspond to an exact, full rotation. For this reason, you will often see Sidereal Time tables in ephemerides.

Sidereal Time

Coordinate Systems

Coordinate Systems are the way we make sense of locations on the Celestial Sphere. Let us define a Coordinate as a combination of two AstroAngles, 𝜃 and 𝜑. Together, the two angles can represent any point or unit vector on a sphere, 𝑝 where |𝑝|=1. From the chosen reference point 𝑐 and starting vector 𝑥, we use 𝜃 to represent the crosswise angle and 𝜑 to represent the vertical angle. Note that for the purposes of our computations, we imply that −180°≤𝜃≤180° and −90°≤𝜑≤90°. The reasoning for this will become more clear when we begin the challenge of Coordinate Conversion, but is primarily for the sake of maintaining consistent quadrants during trigonometry. We do not need to denote the length of the vector 𝑝 because non-unit vectors are out of scope.

Spherical Coordinate

As a disclaimer, it should be noted the conventions that I employ here are not universal in Astronomy. Different sources employ a wide array of starting vectors and measure both clockwise and anti-clockwise, allowing different ranges in their values between various systems. Here, all positive values of 𝜃 are clockwise and all positive values of 𝜑 are ‘above’ the plane on which 𝑥 sits unless specified otherwise. This is the convention for Geographic Coordinates and so should be more intuitive.

Geographic Coordinates

Geographic Coordinates are the type that we see on Google Maps, the ones we use to navigate across the globe and which mark locations on it.

Geographic
𝑐:
The center of the Earth
𝑥:
The Longitude of Greenwich, England (Prime Meridian)
𝜃:
Longitude (𝜆𝑜). Typically represented in the form XX°YY′ZZ″.
𝜑:
Latitude (𝜑𝑜). Typically represented in the form XX°YY′ZZ″.
𝑝:
Location on Earth

Heliocentric Ecliptic Coordinates

Heliocentric Ecliptic Coordinates define where a celestial body is in relation to the Ecliptic Plane from the perspective of the Sun.

Heliocentric Ecliptic
𝑐:
The Sun
𝑥:
Vernal Equinox
𝜃:
Longitude (𝑙)
𝜑:
Latitude (𝑏)
𝑝:
Location of celestial object

Geocentric Ecliptic Coordinates

Geocentric Ecliptic Coordinates define where a celestial body is in relation to the Ecliptic Plane from the perspective of the Earth. This is the view ancient astronomers were most interested in, as the planets (wanderers) in the night sky all through this great circle with low magnitude latitudes.

Geocentric Ecliptic
𝑐:
The Earth
𝑥:
Vernal Equinox
𝜃:
Longitude (𝜆)
𝜑:
Latitude (𝛽)
𝑝:
Location of celestial object

Equatorial Coordinates

Equatorial Coordinates measure the location of celestial bodies using the Equator as the primary reference point. The starting point 𝑥 along the Equator requires an understanding of Geocentric Ecliptic Coordinates to be understood.

Equatorial
𝑐:
The center of the Earth
𝑥:
Vernal Equinox
𝜃:
Right Ascension (𝛼). Typically represented in the form XXhYYmZZs.
𝜑:
Declination (𝛿). Typically represented in the form XX°YY′ZZ″.
𝑝:
Location of celestial body

Horizontal Coordinates

Horizontal Coordinates define where something in the sky is from an Observer’s point of view. Note that because on a celestial scale, the diameter of the Earth is minuscule, positioning an Observer in the center of the Earth and imagining that the Earth is transparent is sufficient here. Correcting for this distance is out of scope and does not prevent us from achieving high accuracy results. Note that while the Observer may be in the center of the Earth, that center can be ‘drilled to’ from any Geographic Coordinate and need not be axis aligned in any way with the Equator, Ecliptic, etc.

Also note that as a result of this definition, any celestial object with a negative Horizontal Altitude 𝜑 is considered below the horizon of the Observer, and by extension unable to be seen.

Horizontal
𝑐:
The Observer themselves
𝑥:
True South for the given Observer
𝜃:
Azimuth (𝐴). Typically represented in the form XX°YY′ZZ″. Measured anti-clockwise.
𝜑:
Altitude (𝑎). Typically represented in the form XX°YY′ZZ″.
𝑝:
Location in the night sky

Note that in this Coordinate System, the Normal Vector and its diametric opposite are both given a special name, the Zenith and the Nadir.

Observers & Time

Let us simply define an Observer as a combination of a Geographic Coordinate in the form (𝜆𝑜,𝜑𝑜) and a local date and time (timestamp). This is the basis for the construction of an Astrological Chart, but is equally the basis for many of the properties that we will use in that construction. Those properties are detailed here. In addition to forming the basis of these computed properties, Observers and their properties will also be used in Coordinate Conversion and the computation of Astrological Houses.

Note that this section is dense mathematically. Even the most renowned modern Astrological texts gloss over these computations in particular and instead rely on Ephemerides.

Greenwich Mean Time (GMT) (𝒢︀)

This is the singular component of computation wherein I would recommend the employment of a third party library. For our purposes, GMT is close enough to UTC that they can be considered interchangeable. Despite this, determining GMT or UTC can be an enormous task. This is not due to any particular difficulty in mathematics (Observer longitude need only be accounted for), but due to the sheer complexity in human time-keeping systems. Some countries still to this day do not employ Gregorian time, other switched at different periods in history, others have jumped across time zones and date lines. A more thorough explanation with more detailed examples can be found here, but let it suffice to say that a third party extension should be employed. I used SwiftDate in my own implementation.

For our purposes and notation, we will agree that the individual components of a GMT date or timestamp can be represented using subscripts as follows:

  • 𝒢︀𝑌 for Year
  • 𝒢︀𝑀 for Month
  • 𝒢︀𝐷 for Day
  • 𝒢︀ℎ for Hour
  • 𝒢︀𝑚 for Minute
  • 𝒢︀𝑠 for Second

Further precision beyond this point is not required for our purposes.

Julian Day (𝐽)

While the Gregorian Calendar is by far the most pervasive of human time systems today, it is not the most useful in all cases. In Astronomy, there is often the desire to represent the current time as a single number, representing the time since a given day. The Julian Day is, in this way, the primordial Unix Time. Note that this equation is pulled directly from SwiftDate and is intended to be used with UTC Time, but again I emphasize that for our purposes UTC and GMT are indistinguishable.

Compute_Julian(𝒢︀):
  1. ℎ=𝒢︀ℎ+𝒢︀𝑚/60+𝒢︀𝑠/3600
  2. 𝐽=367×𝒢︀𝑌−⌊7×(𝒢︀𝑌+⌊(𝒢︀𝑀+9)/12⌋)/4⌋
  3. 𝐽=𝐽−⌊3×(⌊(𝒢︀𝑌+(𝒢︀𝑀−9)/7)/100⌋+1)/4⌋
  4. 𝐽=𝐽+⌊275×𝒢︀𝑀/9⌋+𝒢︀𝐷+1721028.5+ℎ/24
  5. return𝐽

Greenwich Mean Sidereal Time (GMST) (𝜃𝐺)

To understand the desire for GMST, it is important to understand the difference between Solar Time and Sidereal Time. Once Sidereal Time is understood, it should also become apparent that its computation should prove strange and troublesome for any party not directly there to measure it. Therefore we construct a simplified methodology for determining the Sidereal Time in Greenwich, which is to say along the Prime Meridian. Later, 𝜃𝐺 can be adjusted for location to find 𝜃𝐿. Note that as input to this computation we require a precise Julian Day for a given GMT.

Compute_GMST(𝐽):
  1. 𝑦=(𝐽−2451545)/36525

    This computes the exact number of years since January 1st, 2000, Noon. Note that Julian Days are not necessarily required to perform this computation but are an easy way to arrive at it.

  2. sd=((−2.454×10−9)×(𝑦−7507.52)×(𝑦2+7914.67𝑦+22.086)×(𝑦2+406.653𝑦+(5.92541×107))+(𝐽mod1.0+0.5)×86400)/240
  3. 𝜃𝐺=bound(sd)
  4. return𝜃𝐺

Local Mean Sidereal Time (LMST) (𝜃𝐿)

Often simply represented as LST, the LMST (𝜃𝐿) of an Observer is simply the GMST of the Observer’s GMT, adjusted for Observer Longitude (𝜆𝑜). With this in mind

Compute_LMST(𝜃𝐺,𝜆𝑜):
  1. 𝜃𝐿=bound(𝜃𝐺+𝜆𝑜)
  2. return𝜃𝐿

Coordinate Conversion

Let us define that for the following conversion procedures, we have been provided an Observer which bears its specified properties.

Heliocentric Ecliptic → Geocentric Ecliptic

Recall for a moment the first diagram present in this article, the projection of the Ecliptic Plane. While this diagram shows us what the Ecliptic Plane means in the context of Astrology, it also directly demonstrates the means for representing a Heliocentric Ecliptic Coordinate in Geocentric Ecliptic Space. By simply obtaining the Heliocentric Coordinates for each Planet and representing them in Rectangular form, the reference point can be shifted through simple addition to that of the Earth, where we can then re-infer the Rectangular positions as Angular Coordinates.

Ecliptic Projection

Geocentric Ecliptic ↔ Equatorial

Let us define the following procedures for Geocentric Ecliptic Coordinates in the form (𝜃,𝜑)=(𝛾,𝛽) and Equatorial Coordinates in the form (𝜃,𝜑)=(𝛼,𝛿). Because in essence, these two Coordinate Systems share the same starting vector 𝑥, only the reference point needs to be adjusted for. This starting vector is the Vernal Equinox, which we denote with the Aries symbol ♈︎. The result is that we simply rotate a given coordinate around this central axis.

Geocentric Ecliptic - Equatorial
GeocentricEcliptic_to_EquatorialObserver(𝛾,𝛽):
  1. 𝛿=arcsin(sin(𝛽)×cos(𝜀)+cos(𝛽)×sin(𝜀)×sin(𝛾))
  2. 𝛼=arctan2(sin(𝛾)×cos(𝜀)−tan(𝛽)×sin(𝜀),cos(𝛾))
  3. return(𝛼,𝛿)
Equatorial_to_GeocentricEclipticObserver(𝛼,𝛿):
  1. 𝛽=arcsin(sin(𝛿)×cos(𝜀)−cos(𝛿)×sin(𝜀)×sin(𝛼))
  2. 𝛾=arctan2(sin(𝛼)×cos(𝜀)+tan(𝛿)×sin(𝜀),cos(𝛼))
  3. return(𝛾,𝛽)

Equatorial ↔ Horizontal

Let us define the following procedures for Equatorial Coordinates in the form (𝜃,𝜑)=(𝛼,𝛿) and Horizontal Coordinates in the form (𝜃,𝜑)=(𝐴,𝑎). Unlike our previous conversion challenge, these conversions can differ across two axes simultaneously, making their transformation more complex.

Equatorial - Horizontal
Equatorial_to_HorizontalObserver(𝛼,𝛿):
  1. ℎ=𝜃𝐿−𝛼

    This computes the Local Hour Angle of the celestial body in question.

  2. 𝑎=arcsin(sin(𝛿)×sin(𝜑𝑜)+cos(𝛿)×cos(𝜑𝑜)×cos(ℎ))
  3. 𝐴=arctan2(−sin(ℎ)×cos(𝛿)/cos(𝑎),[sin(𝛿)−sin(𝜑𝑜)×sin(𝑎)]/[cos(𝜑𝑜)×cos(𝑎)])
  4. return(𝐴,𝑎)
Horizontal_to_EquatorialObserver(𝐴,𝑎)
  1. 𝛿=arcsin(sin(𝑎)×sin(𝜑𝑜)+cos(𝑎)×cos(𝜑𝑜)×cos(𝐴))
  2. ℎ=arctan2(−sin(𝐴)×cos(𝑎)/cos(𝛿),(sin(𝑎)−sin(𝛿)×sin(𝜑𝑜))/cos(𝛿)×cos(𝜑𝑜))

    This computes the Local Hour Angle of the celestial body in question.

  3. 𝛼=𝜃𝐿−ℎ
  4. return(𝛿,𝛼)

Orbital Elements

The Orbital Elements of a celestial body determine the shape and orientation of its orbit. The only reason we require an understanding of them is so that we can use them in the computation of Planetary Placements, where they are referenced by referring to a given Planet as the variable 𝑝. Beyond this scope, they serve very little utility to us as Astrologers. For that reason, this section is conceptually brief and mathematically verbose.

Note that the Orbit defined by the Elements in question is not a Great Circle. Additionally it will be seen that because most Planets lie within the Ecliptic Plane to an extent, computed Inclination values are generally low. This is true except in the case of the Moon, which experiences a greater range in Inclination.

Orbitals
Ω:
Longitude of Ascending Node
𝑖:
Inclination
𝜔:
Argument of Periapsis
𝑎:
Semi-major axis
𝑒:
Eccentricity
𝑀:
Mean anomaly
𝑓:
True anomaly for the given epoch 𝑡0
𝑟:
The distance of the body from the center of our system

Prior to any computations, we must also define a modified Julian Day, one which creates a value more familiar.

Compute_MJD(𝐽)

𝑑=𝐽−2451543.5

return𝑑

Assume now that Compute_MJD has been run for a given Observer’s Julian Day and the resulting value 𝑑 is stored locally.

Note that for the values Ω,𝑖,𝜔, and 𝑀, we compute their values here in raw degrees which can subsequently be fed to an AstroAngle object instance. Note also that we implicitly utilize the bound function in obtaining our result. Because the other values are not AstroAngles, the bound function is not needed.

Sun_Orbitals
Ω: 0
𝑖: 0
𝜔: 282.9404+(4.70935×10−5)×𝑑
𝑎: 1
𝑒: 0.016709−(1.151×10−9)×𝑑
𝑀: 356.0470+0.9856002585×𝑑
Moon_Orbitals
Ω: 125.1228−0.0529538083×𝑑
𝑖: 5.1454
𝜔: 318.0634+0.1643573223×𝑑
𝑎: 60.2666
𝑒: 0.0549
𝑀: 115.3654+13.0649929509×𝑑
Mercury_Orbitals
Ω: 48.3313+(3.24587×10−5)×𝑑
𝑖: 7.0047+(5.00×10−8)×𝑑
𝜔: 229.1241+(1.01444×10−5)×𝑑
𝑎: 0.387098
𝑒: 0.205635+(5.59×10−10)×𝑑
𝑀: 168.6562+4.0923344368×𝑑
Venus_Orbitals
Ω: 76.6799+(2.46590×10−5)×𝑑
𝑖: 3.3946+(2.75×10−8)×𝑑
𝜔: 54.8910+(1.38374×10−5)×𝑑
𝑎: 0.723330
𝑒: 0.006773−(1.302×10−9)×𝑑
𝑀: 48.0052+1.6021302244×𝑑
Mars_Orbitals
Ω: 49.5574+(2.11081×10−5)×𝑑
𝑖: 1.8497−(1.78×10−8)×𝑑
𝜔: 286.5016+(2.92961×10−5)×𝑑
𝑎: 1.523688
𝑒: 0.093405+(2.516×10−9)×𝑑
𝑀: 18.6021+0.5240207766×𝑑
Jupiter_Orbitals
Ω: 100.4542+(2.76854×10−5)×𝑑
𝑖: 1.3030−1.557×10−7×𝑑
𝜔: 273.8777+1.64505×10−5×𝑑
𝑎: 5.20256
𝑒: 0.048498+4.469×10−9×𝑑
𝑀: 19.8950+0.0830853001×𝑑
Saturn_Orbitals
Ω: 113.6634+2.38980×10−5×𝑑
𝑖: 2.4886−1.081×10−7×𝑑
𝜔: 339.3939+(2.97661×10−5)×𝑑
𝑎: 9.55475
𝑒: 0.055546−(9.499×10−9)×𝑑
𝑀: 316.9670+0.0334442282×𝑑
Uranus_Orbitals
Ω: 74.0005+(1.3978×10−5)×𝑑
𝑖: 0.7733+(1.9×10−8)×𝑑
𝜔: 96.6612+(3.0565×10−5)×𝑑
𝑎: 19.18171−(1.55×10−8)×𝑑
𝑒: 0.047318+(7.45×10−9)×𝑑
𝑀: 142.5905+0.011725806×𝑑
Neptune_Orbitals
Ω: 131.7806+(3.0173×10−5)×𝑑
𝑖: 1.7700−(2.55×10−7)×𝑑
𝜔: 272.8461−(6.027×10−6)×𝑑
𝑎: 30.05826+(3.313×10−8)×𝑑
𝑒: 0.008606+(2.15×10−9)×𝑑
𝑀: 260.2471+0.005995147×𝑑

There are additionally a few higher order values that must also be computed for each Planet before positions can be determined.

Compute_𝐸

𝐸0=𝑀+AstroAngle(radians:𝑒×sin(𝑀)×(1+𝑒×cos(𝑀)))

if Sun:
return𝐸0

else:
𝐸1=0°
while𝐸0>0.05°and|𝐸0−𝐸1|>0.001°
𝐸1=𝐸0−(𝐸0−AstroAngle(radians:𝑒×sin(𝐸0))−𝑀)/(1−𝑒×cos(𝐸0))
𝐸0=𝐸1
return𝐸0

Compute_𝑓_𝑟()

𝑥𝑝=𝑎×cos(𝐸)−𝑒

𝑦𝑝=𝑎×1−𝑒2×sin(𝐸)

𝑓=atan2(𝑦𝑝,𝑥𝑝)

𝑟=𝑥𝑝2+𝑦𝑝2

return𝑓,𝑟

Planetary Placements

Once the Orbital Elements for each Planet are computed for a given Observer, we must subsequently infer Heliocentric and Geocentric Coordinates for each Planet, so that they can be placed on the Astrological Chart.

Heliocentric Placements

Here, we utilize the Orbital Elements of a given Planet (𝑝) to place it on the Heliocentric Ecliptic Plane.

Compute_Heliocentric(𝑝)

𝑥ℎ=𝑟×(cos(𝑁)×cos(𝑓+𝑤)−sin(𝑁)×sin(𝑓+𝑤)×cos(𝑖))

𝑦ℎ=𝑟×(sin(𝑁)×cos(𝑓+𝑤)+cos(𝑁)×sin(𝑓+𝑤)×cos(𝑖))

𝑧ℎ=𝑟×(sin(𝑓+𝑤)×sin(𝑖))

latitudeℎ=AstroAngle(radians:atan2(𝑧ℎ,𝑥ℎ2+𝑦ℎ2))

longitudeℎ=AstroAngle(radians:atan2(𝑦ℎ,𝑥ℎ))

return(latitudeℎ,longitudeℎ)

Perturbations

The Planetary Orbits do not exist in isolation from one another. While we can define them in isolation to an extent, there are extremely massive Planets in our solar system which have gravitational effects on one another. Therefore before we’re able to obtain a Placement from a Geocentric perspective, we must take these Perturbations into account.

Moon

Before computing the Perturbations for the Moon, we recognize the following shorthands:

𝐿𝑠=
Sun’s Mean Longitude
𝐿𝑚=
Moon’s Mean Longitude
𝑀𝑠=
Sun’s Mean Anomaly
𝑀𝑚=
Moon’s Mean Anomaly
𝐷=𝐿𝑚−𝐿𝑠=
Moon’s Mean Elongation
𝐹=𝐿𝑚−𝑁𝑚=
Moon’s Argument of Latitude

To account for the Moon’s Perturbations, we first add the following terms to its Heliocentric Longitude

− 1.274 ° × sin ( 𝑀 𝑚 − 2 × 𝐷 ) + 0.658 ° × sin ( 2 × 𝐷 ) − 0.186 ° × sin ( 𝑀 𝑠 ) − 0.059 ° × sin ( 2 × 𝑀 𝑚 − 2 × 𝐷 ) − 0.057 ° × sin ( 𝑀 𝑚 − 2 × 𝐷 + 𝑀 𝑠 ) + 0.053 ° × sin ( 𝑀 𝑚 + 2 × 𝐷 ) + 0.046 ° × sin ( 2 × 𝐷 − 𝑀 𝑠 ) + 0.041 ° × sin ( 𝑀 𝑚 − 𝑀 𝑠 ) − 0.035 ° × sin ( 𝐷 ) − 0.031 ° × sin ( 𝑀 𝑚 + 𝑀 𝑠 ) − 0.015 ° × sin ( 2 × 𝐹 − 2 × 𝐷 ) + 0.011 ° × sin ( 𝑀 𝑚 − 4 × 𝐷 )

Secondarily, we also add the following terms to the Moon’s Heliocentric Latitude.

− 0.173 ° × sin ( 𝐹 − 2 × 𝐷 ) − 0.055 ° × sin ( 𝑀 𝑚 − 𝐹 − 2 × 𝐷 ) − 0.046 ° × sin ( 𝑀 𝑚 + 𝐹 − 2 × 𝐷 ) + 0.033 ° × sin ( 𝐹 + 2 × 𝐷 ) + 0.017 ° × sin ( 2 × 𝑀 𝑚 + 𝐹 )

Finally, we also add the following terms to 𝑀𝑟, the Lunar Distance

− 0.58 × cos ( 𝑀 𝑚 − 2 × 𝐷 ) − 0.46 × cos ( 2 × 𝐷 )

Jupiter, Saturn, & Uranus

Before computing the Perturbations for Jupiter, Saturn, and Uranus, we recognize the following shorthands:

𝑀𝑗=
Jupiter’s Mean Anomaly
𝑀𝑠=
Saturn’s Mean Anomaly
𝑀𝑢=
Uranus’ Mean Anomaly
Jupiter

To account for Jupiter’s Perturbations, we add the following terms to its Heliocentric Longitude.

− 0.332 ° × sin ( 2 × 𝑀 𝑗 − 5 × 𝑀 𝑠 − 67.6 ° ) − 0.056 ° × sin ( 2 × 𝑀 𝑗 − 2 × 𝑀 𝑠 + 21 ° ) + 0.042 ° × sin ( 3 × 𝑀 𝑗 − 5 × 𝑀 𝑠 + 21 ° ) − 0.036 ° × sin ( 𝑀 𝑗 − 2 × 𝑀 𝑠 ) + 0.022 ° × cos ( 𝑀 𝑗 − 𝑀 𝑠 ) + 0.023 ° × sin ( 2 × 𝑀 𝑗 − 3 × 𝑀 𝑠 + 52 ° ) − 0.016 ° × sin ( 𝑀 𝑗 − 5 × 𝑀 𝑠 − 69 ° )
Saturn

To account for Saturn’s Perturbations, we first add the following terms to its Heliocentric Longitude.

+ 0.812 ° × sin ( 2 × 𝑀 𝑗 − 5 × 𝑀 𝑠 − 67.6 ° ) − 0.229 ° × cos ( 2 × 𝑀 𝑗 − 4 × 𝑀 𝑠 − 2 ° ) + 0.119 ° × sin ( 𝑀 𝑗 − 2 × 𝑀 𝑠 − 3 ° ) + 0.046 ° × sin ( 2 × 𝑀 𝑗 − 6 × 𝑀 𝑠 − 69 ° ) + 0.014 ° × sin ( 𝑀 𝑗 − 3 × 𝑀 𝑠 + 32 ° )

Secondarily, we also add the following terms to Saturn’s Heliocentric Latitude.

− 0.020 ° × cos ( 2 × 𝑀 𝑗 − 4 × 𝑀 𝑠 − 2 ° ) + 0.018 ° × sin ( 2 × 𝑀 𝑗 − 6 × 𝑀 𝑠 − 49 ° )
Uranus

To account for Uranus’ Perturbations, we add the following terms to its Heliocentric Longitude.

+ 0.040 ° × sin ( 𝑀 𝑠 − 2 × 𝑀 𝑢 + 6 ° ) + 0.035 ° × sin ( 𝑀 𝑠 − 3 × 𝑀 𝑢 + 33 ° ) − 0.015 ° × sin ( 𝑀 𝑗 − 𝑀 𝑢 + 20 ° )

Pluto

Note that Pluto’s Orbital Elements have not yet been determined. For this reason we rely on more detailed but hardcoded equations to provide us with Pluto’s Heliocentric Ecliptic Coordinate.

𝑙 = 238.9508 + 0.00400703 × 𝑑 − 19.799 × sin ( 𝑃 ) + 19.848 × cos ( 𝑃 ) + 0.897 × sin ( 2 × 𝑃 ) − 4.956 × cos ( 2 × 𝑃 ) + 0.610 × sin ( 3 × 𝑃 ) + 1.211 × cos ( 3 × 𝑃 ) − 0.341 × sin ( 4 × 𝑃 ) − 0.190 × cos ( 4 × 𝑃 ) + 0.128 × sin ( 5 × 𝑃 ) − 0.034 × cos ( 5 × 𝑃 ) − 0.038 × sin ( 6 × 𝑃 ) + 0.031 × cos ( 6 × 𝑃 ) + 0.020 × sin ( 𝑆 − 𝑃 ) − 0.010 × cos ( 𝑆 − 𝑃 ) 𝑏 = − 3.9082 − 5.453 × sin ( 𝑃 ) − 14.975 × cos ( 𝑃 ) + 3.527 × sin ( 2 × 𝑃 ) + 1.673 × cos ( 2 × 𝑃 ) − 1.051 × sin ( 3 × 𝑃 ) + 0.328 × cos ( 3 × 𝑃 ) + 0.179 × sin ( 4 × 𝑃 ) − 0.292 × cos ( 4 × 𝑃 ) + 0.019 × sin ( 5 × 𝑃 ) + 0.100 × cos ( 5 × 𝑃 ) − 0.031 × sin ( 6 × 𝑃 ) − 0.026 × cos ( 6 × 𝑃 ) + 0.011 × cos ( 𝑆 − 𝑃 ) 𝑟 = 40.72 + 6.68 × sin ( 𝑃 ) + 6.90 × cos ( 𝑃 ) − 1.18 × sin ( 2 × 𝑃 ) − 0.03 × cos ( 2 × 𝑃 ) + 0.15 × sin ( 3 × 𝑃 ) − 0.14 × cos ( 3 × 𝑃 )

Geocentric Placements

One Perturbations have been accounted for in the relevant Orbitals, we can now move

Retrograde Motion

House System Computations

Cardinal Points of The Chart

If you’re familiar with Astrology, you may have seen the Ascendant and Midheaven listed alongside other Planetary Placements. If you’re particularly adept, you may already know that they are not Planets, but are in fact Houses in most cases and relevant to interpretation in all cases. One of the beauties of the many House Systems enumerated below is that they all share these Cardinal Points unless otherwise stated. So while the methodologies for obtaining House Cusps can vary greatly, they are at large unified by these two reference points and their diametric counterparts.

The relationship of these points to the Coordinate Systems we have established is explained here.

Ascendant / Descendant

The Ascendant can be found at the Easternmost intersection of the Horizontal Plane and the Ecliptic Plane. To compute this, we can take the Normal Vector of the Horizontal Plane (The Zenith), converting it first to Equatorial Space and secondly to Geocentric Ecliptic Space. Once there, we can compute its cross product with the Normal Vector of the Geocentric Ecliptic Plane to find the resulting intersection. This intersection defines both the Ascendant and Descendant.

In many but not all House Systems, the Ascendant is the 1st House Cusp and the Descendant is the 7th House Cusp.

Midheaven / Imum Coeli

The Midheaven can be found at the point where the secondary Great Circle of the Horizontal Coordinate System (The Prime Vertical) intersects with the Ecliptic Plane.

In many but not all House Systems, the Midheaven is the 10th House Cusp and the Imum Coeli is the 4th House Cusp.

Quadrants

Ecliptic-Based Systems

Ecliptic-Based Systems posit that the means of determining the House Cusps should be contained entirely within the realm of the Ecliptic Plane. Being the primary Great Circle of interest in the Astrological tradition and the home of all Placements via projection, this was the apparent and intuitive choice. As a result, the following systems can be performed directly without the need for Coordinate Conversion.

Equal Sign Houses

Equal Houses are arguably the oldest method of dividing the houses and by far the most mathematically simple. Simply compute the Ascendant and utilize it as a reference point. This marks the first House Cusp, and all subsequent House Cusps are computed by adding equal, 30° angle increments along the Ecliptic Plane.

As a consequence of this,

Equal Houses

Whole Sign Houses

Whole Sign Houses are very alike Equal Houses in both age and complexity. First, compute the Ascendant. Now ask, which Sign does the Ascendant fall under? The 0° of this Sign will be the mark of the first House Cusp, and all subsequent House Cusps will be computed in equal, 30° angle increments along the Ecliptic Plane.

Porphyry Houses

Porphyry Houses serve to add an important revelation in the world of House Division. Unlike in the case of Equal and Whole Houses, Porphyry Houses maintain that the Midheaven should serve as the 10th House Cusp. Now, rather than starting with the Ascendant and adding 30° increments along the Ecliptic Plane, we start with the Ascendant, Midheaven, Descendant, and Imum Coeli, equally dividing each quadrant of the Ecliptic into three parts.

Porphyry Houses

Space-Based Systems

Space-Based Systems depart from the Ecliptic paradigm. Rather than directly dividing the Ecliptic Plane in some predetermined way, we now posit that it is actually the Celestial Sphere that should be equally divided in some meaningful way. From these divisions, relationships to the Ecliptic Plane are subsequently inferred and used to arrive at final House Division longitudes.

Campanus Houses

Campanus iterated on the conceptual work done by Meridian and Morinus Houses, maintaining the equal division of the Celestial Sphere. Building on these concepts, he integrated them with Porphyry’s notion of congruency between House Cusps and the Ascendant, Midheaven, Descendant, and Imum Coeli.

To construct Campanus Houses, we begin with the Midheaven and create equal divisions perpendicular to the Prime Vertical such that the House Cusps intersect with the North and South points on the Horizon. These lines are then traced through the Ecliptic Plane, each intersection marking a House Cusp.

Campanus Houses

Regiomontanus Houses

To construct Regiomontanus Houses, we begin by computing the intersection of the Prime Vertical and the Equator. From here, equal increments of 30° are added to the computed Coordinate’s Right Ascension. From each of these reference points, Great Circles are drawn through the North and South points of the Horizontal Plane. The intersections of these Great Circles with the Ecliptic Plane are the House Cusps.

Regiomontanus Houses

Morinus Houses

To construct Morinus Houses, we find the intersection of the Prime Vertical and the Equator. In doing so, we mark this point on the Equator as our 10th House, and subsequently make equal divisions of Right Ascension around the Equator. House Cusps are then determined by tracing lines through these equatorial points as well as the poles of the Ecliptic Plane.

Morinus Houses benefit from the fact that the Equatorial and Ecliptic Planes remain at a relatively fixed angle to one another, not accounting for Precession. Therefore even though the 10th House can begin at an arbitrary location, the fact that the equal divisions are made along the Equatorial Plane prevents the distortion of House Cusps at more extreme latitudes. This is the highlighted feature of the Morinus Houses, though they experience the caveat that the Cardinal Points of a given chart are not congruent with the Houses as Porphyry first posited should be the case.

Morinus Houses

Time-Based Systems

Fundamentally different from the systems we’ve seen thus far, Time-Based House Systems rely on the computation and prediction of rising, transiting, and setting times.

Alcabitius Houses

Placidus Houses

Further Reading & Resources

  1. https://stjarnhimlen.se/comp/tutorial.html#12
  2. https://stjarnhimlen.se/comp/ppcomp.html
  3. https://stjarnhimlen.se/comp/riset.html
  4. https://en.wikipedia.org/wiki/Astronomical_coordinate_systems
  5. http://neoprogrammics.com/sidereal_time_calculator/index.php