필터 지우기
필터 지우기

Solving Equations by Assuming Values and Iteration

조회 수: 3 (최근 30일)
Abdullah
Abdullah 2011년 12월 26일
Hello everyone.
I need a code that can solve two equations:
40*pi*1E3 = sqrt(1/(C1*C2*R3*R4));
40*pi/0.7 = 1/(C1*R3) + 1/(C2*R3);
Now, as you can see that I can not solve this equation unless I make an assumption, now I want MATLAB to assume the all the values of R and C from the standard values list:
I know this will be done using iteration, but unfortunately I can not do that.
Regards

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 26일
Well, you could assume each of those values, but then what? How would you decide which solution is best? For example are you trying to find the solution with the least difference between the computed values and "standard values" that appear in the table? Or is the solution the one whose values are least under standard values? Or least over?
  댓글 수: 2
Abdullah
Abdullah 2011년 12월 26일
the solution the one whose values are least under standard values!
yes
Walter Roberson
Walter Roberson 2011년 12월 27일
Please check your equation
40*pi/0.7 = 1/(C1*R3) + 1/(C2*R3);
This is independent of the value of R4 and so is not symmetrical under the operation of simultaneously exchanging C1 with C2 and R3 with R4. If your equations are not symmetrical under interchange of the variables, then you need to do about twice as much work.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by