-
-
Notifications
You must be signed in to change notification settings - Fork 276
Extended Gauss' propagator #631
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you requested a review, I left some early comments
src/poliastro/twobody/propagation.py
Outdated
return x ** 3 - 3 * epsilon * x - 2 * b | ||
|
||
# Solving for the roots | ||
x = root(f, b, args=(epsilon, b)).x[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a chance we have the derivative of the function? I think the answer is yes, so I would use newton
instead. Even if we don't provide the derivative, I would not use root
, because it's too general purpose and impossible to accelerate with numba (unless we explore #486)
I've decided to work again on this since I have some free time today. However, even if the tests pass some things still need to be done:
What a pity Riot-Matrix is down today 😢 |
Codecov Report
@@ Coverage Diff @@
## master #631 +/- ##
==========================================
- Coverage 87.17% 84.28% -2.89%
==========================================
Files 52 51 -1
Lines 2580 2533 -47
Branches 220 198 -22
==========================================
- Hits 2249 2135 -114
- Misses 262 344 +82
+ Partials 69 54 -15
Continue to review full report at Codecov.
|
Pending:
|
Link to paper on Gauss Algorithm: https://dspace.mit.edu/handle/1721.1/16383 |
This is going to be my priority during the following days. I will read in detail the paper because even that if Battin is the advisor, I am not sure if it is the same algorithm that the one explained on his book.
So this is supposed to be what I call the MOAP (Mother Of All Propagators) 😆 |
Current status of this algorithm:
|
Current status and updates on this pull request:
|
I took directly the algorithm from Battin 1999, section 5.6 and tested the algorithm with the proposed example 5-30.
This algorithm still needs to be finished, so CI is going to fail. But I decided to make the PR just for receive code reviews and keep working on this. Last part of Battin's explanation about the algorithm is a little bit confusing.
This may solve when finished #475