loading

The perfect choice of one-stop service for diversification of architecture.

Modelling Lunar Motion in Python Closed

Well, just to be clear: I haven't looked at your code, I'm not responding to that. I'm submitting in the answer section because I have a general comment.The treatment by Richard Fitzpatrick that you link to is an exercise in how to go about obtaining an analytic solution for the case of the the Sun-Earth-Moon three body problem. In the general case of three bodies with mutual interactions there is no exhaustive solution, but in some cases some well chosen approximations can make it feasible to do the computations with pen and paper. As we know: for centuries this is what astronomers did in order to do astronomy: you find ways to bring the calculations within reach of being handled with pen and paper.These approaches are not used when electronic computers are used to calculate celestial motion. On an electronic computer you use Newton's law of gravity in its direct form: $$ F fracGm_1 m_2r^2 $$(Wich in the case of the Sun, Earth, Moon system of course means that you process three interactions: Sun-Earth, Sun-Moon, Earth-Moon.)To my knowledge that is how on electronic computers all simulations of celestial motion are done.My suggestion: use cartesian coordinates, and use a non-rotating coordinate system. If you also want to plot the motion with respect to some rotating coordinate system then you can apply that coordinate transformation to the result of the numerical integration. (Again, I suppose that in past centuries in order to bring the calculations within reach of pen and paper it was in some circumstances efficient to express the equation of motion and the intended coordinate transformation in a combined formula, and proceed from there.) Let me add some general considerations.Trade-offsWith todays computing power: for the purpose of processing a three body case your computational power is effectively limitless. Only when you want to to model, say, an entire galaxy you need a supercomputer.In the treatment by Fitzpatrick there are approximations, he mentions neglecting higher order terms. Those approximations introduce error. Negligable in the short run, but over time you get accumulation of error.

If the only expression you evaluate is Newton's law in bare form then there is no approximation in the formula's themselves. Then only one source of error remains, the precision level of the numerical integration. You have a trade-off there. Higher precision level may limit you to, say, computing only a couple of thousand years of Moon motion. Lower precision level may allow you to compute millions of years, but probably by that time accumulation of error has made the end state meaningless.(Also, over time the distance between the Earth and the Moon is increasing. There are tidal effects that result in the Earth slowing down and the Moon being pulled to a higher orbit. So a long term model would have include that gravitational interaction.)So it's good to be aware of the trade-offs that apply in your case, and to try and make sensible decisions.One important trade-off, I think: the simpler the expressions that the numerical integration evaluates, the more debuggable the simulation is. Newton's law of gravity is a simple, transparent expression.Displaying the resultsAgain, since your computing power is effectively limitless you can display the results of the computation in any way you want. For instance, you can choose to set up a side by side display of the motion with respect to some particular inertial coordinate system, and next to it the motion with respect to some particular rotating coordinate system. The required coordinate transformation for that is trivial.That is, given your limitless computing power the decision on how to display the results is independent from the decision of how to execute the numerical integration itself.There is no such thing as: "I want to visualize the results as motion with respect to this rotating coordinate system so I must do all the computation in that rotating coordinate system.

" Obviously the two are independent.

• Related Questions

Quantum version of the Galton Board

You might like this 110-page paper by me and Alex Arkhipov, which is all about a quantum bosonic analogue of Galton's board (we even use the same graphic you did -- see Section 1.1!). In particular, we gave strong evidence that such a board (with an arbitrary configuration of "pegs," and with multiple entry points for the "balls") is exponentially hard even to simulate using a classical computer. This suggests that such a quantum Galton's board (which is now called a "BosonSampler") could be used as a rudimentary, proof-of-principle quantum computer. And indeed, within the last year the first BosonSampling experiments were done in linear optics (see here), although so far only with 3 photons.To make our argument for computational hardness work, we needed two crucial assumptions:(1) The "balls" have to be indistinguishable particles. If they're distinguishable, then the distribution for any one individual ball could still exhibit interference fringes. But once you knew the probability distribution for one ball, the distribution for n balls would just be obtained by sampling from that distribution n times independently -- thereby producing "conventional, classical" Law of Large Numbers behavior. By contrast, identical quantum particles can famously become "correlated" even if they've never explicitly interacted, as seen for example in the Hong-Ou-Mandel dip.(2) The "balls" have to be bosons. In that case, their transition amplitudes are given by nxn matrix permanents, the calculation of which is a famous hard problem in computer science. By contrast, if the balls are fermions, then their transition amplitudes are given by nxn determinants, which are easy to calculate classically.Of course, there's also a "narrower" way to interpret your question, which might be closer to what you were actually asking about! Namely, rather than an "arbitrary" Galton-like board, we could consider the specific geometry from the figure: so let's say, a network of 50/50 interferometers arranged in a diamond pattern in the plane, with a single source of particles at the top. And we could then calculate (or, if we're lazier, numerically simulate.

..) the particular probability distribution over n-particle outcomes that that configuration leads to, under two different assumptions:(1) That the particles are distinguishable. (In this case, of course, the problem reduces to working out the distribution for a single particle.)(2) That the particles are indistinguishable bosons.

(Note that a third case, that the particles are indistinguishable fermions, never arises -- for by the Pauli exclusion principle, n identical fermions couldn't even "fit" simultaneously through the single source at the top.)If I have some time later, I might work out the answers and post them here -- but in the meantime, anyone else should feel free to do so first.Addendum: OK, so let's consider the case of a single quantum particle passing through a "diamond-shaped" network of 50/50 interferometers. In that case, the probability distribution after n steps will be determined, not by the nth row of Pascal's triangle (as in the classical case), but by the nth row of what we might call the "interferometric Pascal's triangle." The latter is defined as follows: let A(i,j) be the jth entry in row i. Then:A(0,0)1A(0,j)0 for all j0For ij positive and odd: A(i,j)A(i-1,j)A(i-1,j1)For ij positive and even: A(i,j)A(i-1,j-1)-A(i-1,j)I'm almost certain that the result will asymptotically approximate the standard behavior for the "quantum random walk on the line": see here or here for good overviews. In particular, the distribution will not look anything like the Gaussian one: instead it should be nearly uniform, except with a bunch of oscillating peaks near the two edges, with the size of the peaks getting damped as you move closer to the center. (See the linked papers for example images.)A slight caveat is that usual analyses of quantum random walks assume there's a "coin" (i.

e.

, a spin-1/2 internal degree of freedom), whereas I've used a staggered arrangement of interferometers to remove the need for the coin. I don't think that affects the walk's qualitative behavior, but I don't have a proof

Modelling Lunar Motion in Python Closed 1

GET IN TOUCH WITH Us
recommended articles
Related Blogs blog
Although GPR has been widely used in hydrology, engineering, environment and other fields, many basic theoretical and technical problems have not been fundamentally ...
So I am thinking of a possible answer to my own question:Build my own journal note entry app linked to a wiki.Zim Wiki uses a file based system for wiki. Maybe I cou...
About 8 I think1. where can i get ncaa football 10 rosters with names?For the last two years I got mine from "Pastapadre". From what i can tell they are really prett...
The Haunting I vaguely remember some kind of eye injury in the movie.• Other Related Knowledge ofa cocktail glass— â€&...
rsync can be somewhat painful if you have a very large number of files - especially if your rsync version is lower than 3. On the other hand: if you use tar, you wou...
Blockchain Technology Explained: Powering BitcoinMicrosoft recently became the latest big name to officially associate with Bitcoin, the decentralized virtual curren...
PLEASE HELP ME CHOOSE A VIDEO CAMERA!?the Flip ultra HD is a really good HD portable camcorder, and it's fairly cheap. A lot of famous youtubers use it, such as timo...
In order to implement the tasks proposed in the outline of the national medium and long term science and technology development plan (2006-2020), the national key R ...
Alibaba group and Royal Philips of the Netherlands announced that they have officially signed an IT infrastructure service framework agreement to jointly promote the...
but it seems the company has disappeared and you can only get it from other sites such as Canadian Content.It works on Windows 7 and due to the nature of the OSes, t...
no data
Customer service
detect