How do I solve Kepler's equation for E using fzero?
Show older comments
I am required to do an assignment in which I need to do just that and I can't figure it out. Equation is:
M=E-e*sin(E)
M, e, and E are all variables.
I need to use fzero to create a script that will solve it for E when I input M and e. It should look something like Kepler(1,2) in the command window for example. Any help would be great thanks alot
5 Comments
Walter Roberson
on 13 Sep 2013
Is abs(e) greater than Pi/2 or less than Pi/2 ?
For e >= Pi/2, there are multiple solutions for E. For any given positive integer N, if P > (N+1/2)*Pi then there are at least N real-valued solutions for some values of E (there may be 1 or 2 fewer solutions for other values of E; the number of solutions will be periodic with E -- a larger E will just push the solutions further positive but they will still exist.)
James Tursa
on 30 Aug 2017
Edited: James Tursa
on 30 Aug 2017
@Walter: 0 <= e < 1
Walter Roberson
on 30 Aug 2017
We don't know that, James. We are only told that e is a variable.
James Tursa
on 30 Aug 2017
Edited: James Tursa
on 30 Aug 2017
@Walter: It is true that OP did not tell you that, but I know that Kepler's equation is used for elliptical orbits. So I was just filling in a detail that OP did not mention.
https://en.wikipedia.org/wiki/Kepler%27s_equation
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!