Azzera filtri
Azzera filtri

Solving Equations by Assuming Values and Iteration

3 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by