How do I solve Kepler's equation for E using fzero?
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 13 de Sept. de 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
el 30 de Ag. de 2017
Editada: James Tursa
el 30 de Ag. de 2017
@Walter: 0 <= e < 1
Walter Roberson
el 30 de Ag. de 2017
We don't know that, James. We are only told that e is a variable.
James Tursa
el 30 de Ag. de 2017
Editada: James Tursa
el 30 de Ag. de 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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Gravitation, Cosmology & Astrophysics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!