V1 = 400/sqrt(3); % phase voltage (V)
R1 = 1;% stator winding resistance
R2 = 1;
X1 = 3; % stator reactance
X2 = 8; % rotor reactance
p=4; % number of pole pairs
f=50; % frequency, Hz
ns=60*f/p; % synchronouse speed (rev.s1)
s = 0:0.01:1; % slip values
T= ((90*R2*V1^2)/(pi*ns*T))/((R1+R2/T)^2+(X1+X2)^2);
I_s = V1/sqrt((R1+R2/s)^2+(X1+X2)^2);
P_in = 3*I_s^2*(R1+R2/s);
w=2*pi*n/60;
P_out = T*w;
eff=Pout/Pin;
Plosses = Pin  Pout;
I need to calculate the formula T which computes the slip as a function of the torque. Please how do i achieve this?
