Solving 2 parameters equation

조회 수: 3 (최근 30일)
Hamid
Hamid 2016년 6월 17일
댓글: Hamid 2016년 6월 17일
Hi everyone,
my unknown parameters are D and nR, I want Rg will be less than 0.5
How is it possible?
p=100;
pi=3.14;
asec=0.2179;
k1=1.3663;
Lg=35;
Wg=32;
k2=5.6641;
Lr=3;
b=0.01;
R1=((p/(pi*Lc))*(log((2*Lc)/asec)+((k1*Lc)/sqrt(Lg*Wg))-k2));
R2=((p/(2*pi*nR*Lr))*(log((4*Lr)/b)-1+((2*k1*Lr)/(sqrt(Lg*Wg)))*(((sqrt(nR)- 1))^2)));
Rm= ((p/(pi*Lc))*(log((2*Lc)/Lr)+((k1*Lc)/sqrt(Lg*Wg))-k2+1));
Rg=((R1*R2)-(Rm^2))/((R1+R2)-(2*Rm));
Thank you.

답변 (1개)

Roger Stafford
Roger Stafford 2016년 6월 17일
I see no unknown variable ‘D’ here. Also the variable ‘Lc’ is not defined. Do you mean that Lc and nR are actually the two unknowns? Also you need to specifically define ‘Rg’.
This looks as though it calls for ‘fsolve’:
http://www.mathworks.com/help/optim/ug/fsolve.html
  댓글 수: 1
Hamid
Hamid 2016년 6월 17일
My bad,sorry
Na=(Lg/D)+1;
Nb=(Wg/D)+1;
Lc=(Lg*Nb)+(Wg*Na);
my unknown parameters are D and nR, I want Rg will be less than 0.5.
please write the right code for solving the equation, unfortunately I don't have enough time.
Thanks.

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

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by