سلام دوستان من برای حل معادله بیضی و رسو ان تو متلب مشکل دارم
معادلش هست
M=E-e.sin(E
توی این فرمول Mبا e رو داریم و E می خواهیم چطوری حلش کنیم ؟؟؟
معادلش هست
M=E-e.sin(E
توی این فرمول Mبا e رو داریم و E می خواهیم چطوری حلش کنیم ؟؟؟
syms M E e
solve('M - E + e*sin(E)','E')
e = 1;
M = 2;
f = @(E)(M-E+e.*sin(E));
fsolve(f,1)
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
ans =
2.5542
y = @(e,M,E)(M-E+e.*sin(E));
y(1,2,ans)
ans =
-2.9793e-007
C = atan(A);
a = 2*C;
e = 1;
M = 2;
f = @(E)(M-E+e.*sin(E));
fsolve(f,1)
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
ans =
2.5542
y = @(e,M,E)(M-E+e.*sin(E));
y(1,2,ans)
ans =
-2.9793e-007
A = sqrt((1+e)/(1-e))* tan (ans/2);
C = atan(A);
theta = 2*C;
e = 1;
M = 2;
f = @(E)(M-E+e.*sin(E));
E = fsolve(f,1);
A = sqrt((1+e)/(1-e))* tan (E/2);
C = atan(A);
theta = 2*C;
دیدگاه