how can i write this in matlab help me plz

조회 수: 1 (최근 30일)
jack
jack 2014년 7월 30일
댓글: Srinivas G 2021년 6월 6일
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
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
Salaheddin Hosseinzadeh 2014년 7월 30일
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
jack 2014년 7월 30일
i really working to figure out code of newton methods :). i try the methods several times but i dont get it right i wish i was have example.and it is a littel bit long ?cz my teacher said keep it simple and short.
Salaheddin Hosseinzadeh
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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by