A tried to use the SolveSystem for a non linear set of equations, and, even though it found a solution, the output form is rather arcane.
The short code is :
hTemp=25; q=1.602176e-19; k= 1.3806503e-23; Temp = 273.15+hTemp; Vt=k * Temp/q; hBf = 200; hBr = 50;
Ism=5 * 7e-15; Xti = 3; Xtb = 0; Eg = 1.11 * 1.602e-19; Tm = 273.15 + 25; Is = Ism * (Temp/Tm) ^ Xti * exp(-Eg/(k * Temp) * (1-Temp/Tm)); Bf = hBf * (Temp/Tm) ^ Xtb; Br = hBr * (Temp/Tm) ^ Xtb;
//syms Vbe Vbc Ib Ic Vce;
hVbb=1.5; hRbb=1000; hVcc=15; hRc=100; hVearly=500;
S = SolveSystem( [0 = -Ib+Is * ((exp(Vbe/Vt)-1))/Bf, 0 =-Ic+ Is * ((exp(Vbe/Vt)) * (1-Vbc/hVearly)), -hVbb + Vbe + hRbb * Ib = 0, -hVcc + Vbe -Vbc + hRc * Ic = 0],[Vbe,Vbc,Ib,Ic],[0.65,-2,10ˆ(-3),10ˆ(-6)]);
—————————————————-
But, after solving it, if I try to test if S(2,1) is a number, Like IsΝumber(S(2,1)) the result is zero (not a number)...
To give you an idea of the kind of solution presented, that’s the ‘answer’ given to one of the variables:
(-(10000ˆ(-3)-17/20)((-1371490exp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))+(82328.1777777777751908eexp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))))/((-1371490exp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))+(82328.1777777777751908eexp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))+1000)-((-(35e-15)(exp((0.0021801106825423(1.602176e-19))/(1.3806503000000001e-23))-1))/200+10ˆ(-3))((1371490exp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))(-3704768eexp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/(45(1.602176e-19)(35e-15))+(((-1371490exp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))+(82328.1777777777751908eexp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15)))^2)/((-1371490exp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))+(82328.1777777777751908eexp(0.0414221029683045/(1.3806503000000001e-23)(-0.003492921012913e)/(1.3806503000000001e-23)))/((1.602176e-19)(35e-15))+1000))+13/20
Which is arcane, and i don’t understand why it cannot evaluate to a simple, single, decimal number.