blob: 18b9d3d5a9b71ad31227bf847967fb4f788aa26f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc;
clear;
c=.01e-6*50;
w=2*%pi*50;
L=1/(3*c*(w^2));
L=round(L*100)/100;
V=33e3/sqrt(3);
I=V/(w*L);
I=round(I*1000)/1000;
I=round(I*100)/100;
R=V*I/1e3; //the difference in result is due to erroneous calculation in textbook.
mprintf("the value of L=%fH and rating =%fkVA",L,R);
disp("the difference in result is due to erroneous calculation in textbook.");
|