Clear Filters
Clear Filters

Solving Equations by Assuming Values and Iteration

3 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 26 Dec 2011
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 Comments
Abdullah
Abdullah on 26 Dec 2011
the solution the one whose values are least under standard values!
yes
Walter Roberson
Walter Roberson on 27 Dec 2011
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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!