필터 지우기
필터 지우기

How can i find the solution of the equation when the R.H.S also contains the unknown??

조회 수: 1 (최근 30일)
I have this eqaution that need to be plotted between s_y and beta. But the problem is that, the R.H.S also contains the quantity beta but under a different math term. This is the eqation:
beta=acosd((((R^2-((R*u*sin(beta))/(R-d))^2)^0.5*(R-d))/(R*u))-(s_y/u));
Except for Beta, all the values are known and s_y has been defined as
s_y=0:0.1:35;
How can i do this?? meaning, how can i solve for beta? am new to matlab and just learning the basics. So if anybody is able to help me with this,I ll be grateful.....
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 4월 23일
Are you sure? You are using acosd() implying that beta is in degrees, but you use sin(beta) implying that beta is in radians.
Naveen Ramesh
Naveen Ramesh 2013년 4월 24일
R,d and u are constants and Walter you are right.. !!it was a typo error... It is sind(beta)

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

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 23일
Assuming radians,
atan2(sqrt(-(-d+R-s_y+u) .* (-d+R+s_y-u) .* (-d+R+s_y+u) .* (-d+R-s_y-u)) ./ (u.*s_y), (R.^2-2.*R.*d-u.^2+d.^2-s_y.^2) ./ (u.*s_y))
and also the negative of that.
  댓글 수: 2
Naveen Ramesh
Naveen Ramesh 2013년 4월 24일
yu mean there are 4 solutions ??? coz there is a comma in the answer that yu have given and also yu mentioned that the negative of this also forms the answer... ??
Walter Roberson
Walter Roberson 2013년 4월 24일
There are two solutions. atan2() is the arctan function that requires two arguments in order to properly figure out which quadrant to use, so atan2() is going to return one value. The negative of that value is also a solution for a total of two solutions.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by