Not simplifying to a usable answer
Ältere Kommentare anzeigen
I am trying to get matlab to do the number crunching for an operational amplifier that has some parallel impedances.

This is how z1 and z2 are supposed to simplify according to the answer booklet, but matlab isn't simplifying anything. I don't get why it wouldn't as the answer booklet did it by hand somehow. Any advice?

4 Kommentare
Torsten
am 15 Feb. 2023
Did you try multiplying numerator and denominator of your answer by 2640/6.9690e35 ?
Hmmm
syms s
%sympref('FloatingPointOutput',true)
zeq = 4*10^5*s+0.25*10^6;
z1 = 10^11/zeq + 4*10^5;
zeq2 = (110*10^3*s+0.25*10^6);
z2 = 27.5*10^9/zeq2 + 6*10^5;
out = collect((z1+z2)/z1)
Andrew Piotrowski
am 15 Feb. 2023
A somewhat different approach yielding a different result —
syms s
Z_1 = 4E+5 + (1E+11/s) / (4E+5 + 0.25E+6/s);
Z_2 = 6E+5 + (27.5E+9/s) / (110E+3 + 0.25E+6/s);
Z = vpa((Z_1+Z_2) / Z_1)
Zs = simplify(Z, 500)
Zsf = simplifyFraction(Z)
[n,d] = numden(Zsf);
Zsf = n / expand(d)
.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Assembly finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!








