I Solve General Relativity "Paradox" w/ Automatic Diff. ODE Solver

m4r35n357
Messages
657
Reaction score
148
After making a couple of comments on this StackExchange question, and pointing yet again to this article, a thought occurred to me.

I have been working on an Automatic Differentiation based ODE solver and equation analyzer, mentioned in this thread. Why not use it to solve equation (7) in the article, and plug in my answer to equation (8)? All I have to do is write a test client containing the appropriate equations ;)

Well, I had to do a bit of work to extract the equation solver results programmatically rather than just printing them out, but I did get it working! Here's what it looks like in the console (the ratio is of the proper times of the radial to circular paths):
Python:
$ ./grtwins.py 2 -2 2 1001 0 1e-9 1e-9 | ./plotMany.py 2 300 >/dev/null
taylor module loaded
series module loaded
playground module loaded
Newton's method
ResultType(count=4, sense='-', mode='ROOT', x=1.5843306502838275, f=-7.105427357601002e-15, dx=-1.0310205845716116e-16)
(4.932330448527358, 1.3413587820012287)
n = 1
alpha = 1.5843306502838275
r1 = 4.932330448527358
r2 = 10.0
ratio = 1.3413587820012287
A plot of the alpha function in the article is attached (function value is black, the rest are the first six derivatives). I am still in the process of testing for accuracy, but thought I'd post while I was motivated ;) If anyone wants to join in the fun, the software (which uses Python3 and matplotlib) is here.
 

Attachments

  • Figure_1-3.png
    Figure_1-3.png
    15.9 KB · Views: 424
  • Like
Likes Dale
Physics news on Phys.org
m4r35n357 said:
I had to do a bit of work to extract the equation solver results programmatically rather than just printing them out, but I did get it working
Excellent!
 
Dale said:
Excellent!
Cheers ;)

I'm now scratching my head wondering how I can check against the table following eq(8). I am starting with r2, working out q, then alpha, then r1. How to go the other way round is not particularly obvious . . . I can only think of brute-force evaluating lots of r2 and alpha values, inverting using eq(6), and then interpolating (not nice at all!).
 
Last edited:
Thread 'Can this experiment break Lorentz symmetry?'
1. The Big Idea: According to Einstein’s relativity, all motion is relative. You can’t tell if you’re moving at a constant velocity without looking outside. But what if there is a universal “rest frame” (like the old idea of the “ether”)? This experiment tries to find out by looking for tiny, directional differences in how objects move inside a sealed box. 2. How It Works: The Two-Stage Process Imagine a perfectly isolated spacecraft (our lab) moving through space at some unknown speed V...
Does the speed of light change in a gravitational field depending on whether the direction of travel is parallel to the field, or perpendicular to the field? And is it the same in both directions at each orientation? This question could be answered experimentally to some degree of accuracy. Experiment design: Place two identical clocks A and B on the circumference of a wheel at opposite ends of the diameter of length L. The wheel is positioned upright, i.e., perpendicular to the ground...
In Philippe G. Ciarlet's book 'An introduction to differential geometry', He gives the integrability conditions of the differential equations like this: $$ \partial_{i} F_{lj}=L^p_{ij} F_{lp},\,\,\,F_{ij}(x_0)=F^0_{ij}. $$ The integrability conditions for the existence of a global solution ##F_{lj}## is: $$ R^i_{jkl}\equiv\partial_k L^i_{jl}-\partial_l L^i_{jk}+L^h_{jl} L^i_{hk}-L^h_{jk} L^i_{hl}=0 $$ Then from the equation: $$\nabla_b e_a= \Gamma^c_{ab} e_c$$ Using cartesian basis ## e_I...

Similar threads

Back
Top