I wrote this code to solve equations1 and 2 in terms of variables (ILm and Vo)
syms ILm Vo IL Vin Ip1 Ip2 Ip3 Is1 Is2 Is3 T3 T4 %%%variables
syms Vin Lk1 Lk2 n k Lm D T R T1 T2 %%%constants
Ip1=(1-k)*Vin*T1/Lk1-(n*IL-ILm)/(n+1);Ip2=(1-k)*Vin*D*T/Lk1-(n*IL-ILm)/(n+1);Ip3=(n*IL-ILm)/(n+1);Is1=Vin*(1+n*k)*T1/Lk2-(IL+ILm)/(n+1);Is2=Vin*(1+n*k)*D*T/Lk2-(IL+ILm)/(n+1);Is3=(IL+ILm)/(n+1);T3=D*T*Vin/(Vo-2*Vin);T4=(1-D)*T-T3;IL=Vo^2/(Vin*R);eq1=-T3*(Is2+Ip2+IL)*0.5+0.5*(Ip3^2*Lk1/(Vin-k*Vin)-Ip1*(T1-Ip3*Lk1/(Vin-k*Vin))+Is3^2*Lk2/(Vin+n*k*Vin)-(T1-Is3*Lk2/(Vin+Vin*n*k))*Is1)-0.5*T2*(Is1+Is2+Ip1+Ip2)+T3*.5*(IL-Is2-Ip2)+IL*T4;eq2=-Vo*T/R+0.5*(Is3^2*Lk2/(Vin+n*Vin*k)-Is1*(T1-Is3*Lk2/(Vin+n*k*Vin)))-0.5*(Is1+Is2)*T2-0.5*(Is2^2*Lk2/((1+n*k)*(Vo-2*Vin)))+Is3*0.25*(T3-Is2*Lk2/((1+n*k)*(Vo-2*Vin)))+Is3*T4;[Voans ILmans]=solve([eq1,eq2],[Vo ILm])
but i get this:
solutions might be lost!
Can anyone help me which part i am doing wrong?
Best Answer