Solving Equations by Assuming Values and Iteration
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 26 Dez. 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 Kommentare
Walter Roberson
am 27 Dez. 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.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!