473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help on Astrolgical Calculation

Hi everyone,

I need an algorithm/program that can computer planetory position data
for a given date/time/place. Can anyone please help me to find the same
(source code/algorithm) or explain me how to find/calculate it.

Thanks in advanced,
K Amit

Nov 15 '05 #1
6 1848
ma*********@gmail.com said:
Hi everyone,

I need an algorithm/program that can computer planetory position data
for a given date/time/place. Can anyone please help me to find the same
(source code/algorithm) or explain me how to find/calculate it.


Here's the obvious method: start with known positions and velocities at
known times of all the masses about whose gravitational influence you care.
Then apply Newton's laws of motion, iteratively. To find the position of a
planet in the night sky at a given point on earth at a given time, you then
only need apply a little elementary trigonometry to the situation.

Here's a less obvious but much easier method: wait until Aries is rising
into Leo and Mars is dominant, and a tall dark stranger will bring you a
surprise package that could save you a lot of trouble! But be wary in your
financial dealings with him.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/2005
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 15 '05 #2
In article <11**********************@g47g2000cwa.googlegroups .com>,
<ma*********@gmail.com> wrote:
:I need an algorithm/program that can computer planetory position data
:for a given date/time/place. Can anyone please help me to find the same
:(source code/algorithm) or explain me how to find/calculate it.

There is no known accurate way to calculate this. This is the "N-Body
Problem", the mathematics of which is chaotic. The positions of the
planets is affected by the position of all the other planets, and
by the position of Sol, and by the composition of the planets, and
by the stellar dynamics of Sol (which determine the mass distribution) --
and all of these are also affected by the positions and mass of the
thousands of minor planets and the positions and mass of all of the
billions of smaller objects.

For example, the position of some of the "shepard moons" in Saturn's
rings depend upon the mass distribution of the ring particles, which in
turn depends upon the planetary electrical field and the details of how
Io ejects mass into orbit... But then the position of Saturn depends
upon the position of the shepard moons, and that affects everything
else.

If you don't mind approximations, you can model the positions
independantly using simple elipses whose foci are determined by the
relative masses of Sol and the planet in question. That is, however,
really only usable for the high-mass planets; the low- mass planets are
much more affected by the influence of the other objects. Keep in mind,
though, that the existance of Neptune and Pluto were deduced based upon
the wobbles in the orbits of the other planets... Mercury in particular
has really noticable orbital deviations from the simple elipse model,
due to relativistic effects (scientists spend years searching for a
planet hidden within Mercury's orbit, until relativity was successfully
applied.)
Beyond that... search for emphemeris programs, such as
http://www.astro.com/swisseph/?lang=e
--
Daylight is a trademark of OSRAM SYLVANIA INC.
Nov 15 '05 #3
On 18 Sep 2005 22:38:41 -0700, ma*********@gmail.com wrote:
Hi everyone,

I need an algorithm/program that can computer planetory position data
for a given date/time/place. Can anyone please help me to find the same
(source code/algorithm) or explain me how to find/calculate it.

Not a C question. You might have better luck in an algorithms group
or one devoted to astronomy.
<<Remove the del for email>>
Nov 15 '05 #4
ma*********@gmail.com wrote
(in article
<11**********************@g47g2000cwa.googlegroups .com>):
Hi everyone,

I need an algorithm/program that can computer planetory position data
for a given date/time/place. Can anyone please help me to find the same
(source code/algorithm) or explain me how to find/calculate it.


Xephem does an excellent job at this sort of thing, and is open
source.
--
Randy Howard (2reply remove FOOBAR)

Nov 15 '05 #5
ajm
Hi,
Here's the obvious method: start with known positions and velocities at
known times of all the masses about whose gravitational influence you care.
Then apply Newton's laws of motion, iteratively. To find the position of a
planet in the night sky at a given point on earth at a given time, you then
only need apply a little elementary trigonometry to the situation.
Might be better computing the N-body Lagrangian and approximating to
the desired degree of accuracy.
Here's a less obvious but much easier method: wait until Aries is rising
into Leo and Mars is dominant, and a tall dark stranger will bring you a
surprise package that could save you a lot of trouble! But be wary in your
financial dealings with him.


I agree with Richard if the stranger offers money take it, otherwise
run...

ajm.

Nov 15 '05 #6
ma*********@gmail.com wrote:
# Hi everyone,
#
# I need an algorithm/program that can computer planetory position data
# for a given date/time/place. Can anyone please help me to find the same
# (source code/algorithm) or explain me how to find/calculate it.

US Navy Observatory, Ministry of Defence, Greenwich
Observatory, etc. Google should find lots of places.

The simple algorithm is to observe the Kepler ellipse
for each planet, the orbital period, and where on the
ellipse the body throughout its period. The observations
are then updated every half century. (Kepler doesn't include
effects of one planet on another; Newton doesn't include
the curvature of space. Over time the predictions drift
from reality.) That should get you close enough to fine
adjust manually.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Elvis was an artist. But that didn't stop him from joining the service
in time of war. That's why he is the king, and you're a shmuck.
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sean McCourt | last post by:
Hi I am doing a JavaScript course and learning from the recommed book (JavaScript 3rd Edition by Don Gosslin) Below is one of the exercises from the book. I get this error message when I try to...
0
by: leavandor | last post by:
I am trying to design a query that works with a relationship between a Table and a Query. I am comparing a value in the table with a computed value inside the query. The reason for this is that...
13
by: Fao | last post by:
Hello, I am having some problems with inheritance. The compiler does not not return any error messages, but when I execute the program, it only allows me to enter the number, but nothing else...
1
by: jlf | last post by:
Need serious help with a calculation. The fields are based on a query that has linked many different tables. The calculation I currently have is: =sum()/((+)*(Piecesnum])) It is giving a...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
10
by: 60325 | last post by:
This is the page where I collect the data in drop-down boxes with values of 1-10 and send it to a submitted page to do calculations. Example: Employee1 TeamScore(1-10) Employee2 ...
47
by: Jo | last post by:
Hi there, I'm Jo and it's the first time I've posted here. I'm in process of creating a database at work and have come a little unstuck.....I'm a bit of a novice and wondered if anyone could...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
3
by: Dew | last post by:
Hello, iam new to programming, and ive been given a task in my Uni to complete certain exercises but i found it very difficulty to solve them. I was wandering if there is someone who can help me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.