I am following giants. At least I am trying. For Gulliver it was not so funny to be in the land of giants:
Certainly Jonathan Swift was a giant of literature. Another giant, among those that I am trying to learn from, is G. K. Chesterton:
Gilbert Keith Chesterton was a giant in many ways. His six-feet-two inches and corpulent figure made him a physical giant but it was the extent and diversity of his writings that made him a giant in the field of literature and theology. He proved to be a great defender of the Catholic faith and crossed swords with the likes of George Bernard Shaw on theological matters yet they remained friends, and Shaw called him ‘a man of colossal genius’
Well well, we really should listen to giants:
The human race, to which so many of my readers belong, has been playing at children’s games from the beginning, and will probably do it till the end, which is a nuisance for the few people who grow up. And one of the games to which it is most attached is called “Keep to–morrow dark,” and which is also named (by the rustics in Shropshire, I have no doubt) “Cheat the Prophet.” The players listen very carefully and respectfully to all that the clever men have to say about what is to happen in the next generation. The players then wait until all the clever men are dead, and bury them nicely. They then go and do something else. That is all. For a race of simple tastes, however, it is great fun.
For human beings, being children, have the childish wilfulness and the childish secrecy. And they never have from the beginning of the world done what the wise men have seen to be inevitable. They stoned the false prophets, it is said; but they could have stoned true prophets with a greater and juster enjoyment. Individually, men may present a more or less rational appearance, eating, sleeping, and scheming. But humanity as a whole is changeful, mystical, fickle, delightful. Men are men, but Man is a woman.
Hmmm…. In my last note, Standing on the shoulders of giants – Reboot,
I started the discussion of one paper by two ladies, Elena Celledoni, Antonella Zanna, et al. “Algorithm 903: FRB–Fortran routines for the exact computation of free rigid body motions.” ACM Transactions on Mathematical Software, Volume 37 Issue 2, April 2010, Article No. 23, doi:10.1145/1731022.1731033. But I did not connect in any way to the content of their paper. I am presenting here a long series of posts about rotations of free rigid bodies, but it is in the spirit of playing games like children do. While the ladies with their paper are serious. I remember what the Bible says:
Yes, it is time to put away childish things or, better, to learn how to talk like an adult to adults. So, let’s do it.
There is the paper, and there is the code. Both can be downloaded and examined. More important is the code. Paper may contain typos. Papers often do. Paper you read. Code you run. There is the code, and there are examples of its application. This is a serious matter. We should be able to check if are able to reproduce the results. Let’s take example 2. Here are initial data that we will try to understand:
1.0000000000D0
10.0000000000D0
-0.609860759302936D0
0.761660947972381D0
0.218957654801698D0
1.000000000000000D0
0.000000000000000D0
0.000000000000000D0
0.000000000000000D0
1.000000000000000D0
0.000000000000000D0
0.000000000000000D0
0.000000000000000D0
1.000000000000000D0
1.000000000000000D0
1.012686988782515D0
3.306237422473038D0
First we have time step. Then we have time. Time is t=10.
Then we have initial angular momentum (in the body frame)
(1)
I checked and we get indeed norm 1.
Then we have the initial attitude matrix – the identity matrix.
The last three lines are the moments of inertia:
(2)
The fact that tells us that mathematicians (our two ladies) have more imagination than physicists. At present we do not have materials that would provide such data (for positive mass densities we should always have ) but in the near future physics and technology may easily move to the place where mathematicians are already today. It is reassuring that already today we can predict and model the behavior of such exotic materials.
Let us calculate the parameter (the ratio of doubled kinetic energy to the square of angular momentum)
Since we have the case when I will use the Mathematica code from our children games:
A1 = Sqrt[I1*(d*I3 – 1)/(I3 – I1)]
A2 = Sqrt[I2*(d*I3 – 1)/(I3 – I2)]
A3 = Sqrt[I3*(1 – d*I1)/(I3 – I1)]
B = Sqrt[(1 – d*I1)*(I3 – I2)/(I1*I2*I3)]
m = ((d*I3 – 1)*(I2 – I1))/((1 – d*I1)*(I3 – I2))
Using these formulas we get:
(3)
We see that as we expected.
We will use the Mathematica code from our children games:
Looking at the initial angular momentum data we see that is positive, therefore we can stay with the formulas above, we do not need to change signs of two of the angular momenta inside the code.
Now, what do we do with initial angular momenta? In our code we need to find the time at which we obtain these values. From that time on we will have to run the code for t=10. So our problem is to solve the following equations:
(4)
We do not have to worry about , because it is already determined by and
We know that
Thus, using Mathematica ArcTan function:
I use Mathematica and get
But is the inverse function of EllipticF. So I calculate
So we know Knowing I use the code above to calculate We get
(5)
In the example from the code we have therefore to get what they get I need to calculate at
We use the Mathematica code above to get:
(6)
To make comparison easier with the results obtained by Celledoni and Zanna, let us transpose the matrix, because they write the output columnwise.
(7)
And here is the result from the code of Celledoni and Zanna at the end of out_example3.dat file:
0.7511853766362874
-0.1659110385305551
-0.6389006630310473
-0.1233163682782040
-0.9861296978083955
0.1110913696692821
-0.6484702022780026
-4.6633029105353817E-03
-0.7612257551892809
It seems that we can now speak the language of adults as well. This encouraging and we can continue our adventure.
The Mathematica notebook with these calculations can be downloaded from here.
Being at peace with matrices, we can move to more dangerous quaternions.
Our laddies ->
obrażą się
Fixed. Thanks for all errata.
->
Oy…
“mathematicians (our two ladies) have more imagination than physicists”
Rather less knowledge.
I disagree. They invented imaginary numbers. They have more imagination.
From the working desk:
But I am not able to get agreement with the example for d>1/I2.
Will try tomorrow, with fresh mind.
This observation is a combination of reading many of the comments from many posts.
Well giants can be really huge in the distance, massive as you get closer, then scary, scary, scary, dangerous. But then elephants are afraid of mice. I dared communicate with a giant. Maybe I made a fool of myself. I see my errors and irritations. Only after I have communicated though. I see such massive parallels to life running in this blog.
If there were no mistakes made in the blog it would be much harder to know if anyone was really listening. If there are mistakes it challanges the readers understanding. Then reader has the choice:- understand, belive “as it is written”,ask….
This blog it quite unique. You never see math being checked in real time. For one thing, researchers usually just take things they find in papers and use it without checking. Ark checks a lot for everyone from Myron Evans to Roger Penrose.
For most all giving facebook likes to Ark’s blog posts, the math is way over our heads but that doesn’t mean we can’t learn from it. Ark gives analogies and there are things we can research to learn as well as we are able to.
You are following via Maple and helped find some differences between Maple and Mathematica. A recent thing I did was read about n-spheres via Wikipedia:
2-sphere
Also known as the sphere. Complex structure; see Riemann sphere. Equivalent to the complex projective line, CP1. SO(3)/SO(2).
3-sphere
Also known as the glome. Parallelizable, Principal U(1)-bundle over the 2-sphere, Lie group structure Sp(1), where also
Sp(1) = SO(4)/SO(3) = SU(2) = Spin(3)
4-sphere
Equivalent to the quaternionic projective line, HP1. SO(5)/SO(4).
back to me: I’m mainly trying to think of it in relation to math in Ark’s previous gravity papers.
Ark even checked the Jacobi elliptic function calculator I was using. The calculator was OK but the equations given below the calculator had an error. Kind of like code that had to run being OK but the associated paper having an error.
“To make comparison easier with the results obtained by Celledoni and Zanna, let us transpose the matrix”
Easier in what scale? Yours?
(For me it is easier to compere with untrasposed matrix, numbers are then mostly ordered vertically on both images.)
Perhaps you are right. But now, with d>1/I2 I am not able to get agreement neither with transposed not with non-transposed matrix. That is my real worry. Didn’t sleep last night from worries. And in the morning it got even worse
Some bugs, as you have observed, are deeply hidden…
“Didn’t sleep last night from worries.”
So this was the second night not slept well.
Sleep during a day!
The problem is that I am seeing troubles not in my land, but in the land where giants reside. I have to be very careful. Don’t know what to do …
Ark,
where can I find, in your posts, formulas for A1, A2, A3, B, m for m>1 ?
(For m<1 and m=1 they are in posts:"Taming the T-handle" and "Taming the T-handle – continued"
That will be part of today’s post. Patience. In a couple of hours.
The previous post that covered m>1 is http://arkadiusz-jadczyk.eu/blog/2017/02/infeld-einstein-blogging/
As I discoved to my horror the other night. Think I got it working. Shall compare to new post tonight.