summaryrefslogtreecommitdiff
path: root/1319/CH5/EX5.3/5_3.sce
blob: 6592dda92adcc271424f388a638fba7f4a0a96ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// To calculate resistance of primary interms of secondary and vice versa

clc;
clear;

N1=90;
N2=180;

R2=0.233;
R1=0.067;

n=N2/N1; // Transformation ratio

R1w2=(n^2)*R1;
R2w1=R2/(n^2);

Rt=R1+R2w1; // Total resistance in terms of primary

printf('a) Resistance of primary in terms of the secondary = %f ohms \n',R1w2)
printf('b) Resistance of secondary in terms of the primary = %f ohms \n',R2w1)
printf('c) Total resistance of the transformer in terms of the primary winding =%f ohms \n',Rt)