blob: dd24eb5735fb1217943114da9975f708e79c5274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
clear;
clc;
r=1250e3;
v=600;
z1=.15*%i;
z2=.3*%i;
z3=.05*%i;
z4=.55*%i;
x1=inv(inv(z2)+inv(z1));
x2=x1;
x0=inv(inv(z3)+inv(z4));
e=1;
ia1=e/(x1+x2+x0);
ia2=ia1;
ia0=ia2;
ia=3*ia1;//the difference in result is due to erroneous calculation in textbook.
base=r/(sqrt(3)*v);
ita=ia*base;
mprintf("the fault current=%fA",-imag(ita));
disp("the difference in result is due to erroneous calculation in textbook.");
|