how can i write this in matlab help me plz
古いコメントを表示
The historic Kepler’s equation has the form M = E−e·sin(E). Solve this equation for e = 0.96727464, the eccentricity of Halley’s comet, and M = 4.527594×10−3 . Use Newton’s method with an accuracy of 5 × 10−5 and a starting value of 1.
1 件のコメント
Srinivas G
2021 年 6 月 6 日
accept three subject marks and calculate total,avg if student pass in all subjects then give grade if marks 60= A, 50=B,40=C
回答 (1 件)
Salaheddin Hosseinzadeh
2014 年 7 月 30 日
0 投票
Hi Jack,
I guess it's your lucky day.
Once I wrote programs that uses 3 different methods to calculate the root, and one of the is the Newton's.
And since I did it in MATLAB it's capable of solving any equations, so you can solve this particular one as well
I'm gonna attach the Newton one here ;)
One thing! You have to change the unknown variable to X, which I think it's E here in your equation.

4 件のコメント
jack
2014 年 7 月 30 日
Salaheddin Hosseinzadeh
2014 年 7 月 30 日
Find the algorithm in Plot button, and don't get panic about the clumsy way of programming I did, it was a long while ago and I was naive, pretty much like now! lol
Let me know if you have any queries and accept my answer if u don't ;)
jack
2014 年 7 月 30 日
Salaheddin Hosseinzadeh
2014 年 7 月 30 日
Ok Jack
Apparently it's your assignment!
I would not sent you the file if I'd known that! I have even a simple one of course, in the form of a script and without GUI. But I'm sorry, I'm not intending to do assignments!
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!