summaryrefslogtreecommitdiff
path: root/343/CH3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /343/CH3
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '343/CH3')
-rwxr-xr-x343/CH3/EX3.17/ex3_17.sce19
1 files changed, 10 insertions, 9 deletions
diff --git a/343/CH3/EX3.17/ex3_17.sce b/343/CH3/EX3.17/ex3_17.sce
index d9e380143..2b16cb8b8 100755
--- a/343/CH3/EX3.17/ex3_17.sce
+++ b/343/CH3/EX3.17/ex3_17.sce
@@ -1,10 +1,11 @@
-clc
-w1=3000 //Assigning values to parameters
-w2=5000
-t=atan(sqrt(3)*(w2-w1)/(w1+w2))
-pf=cos(t)
-p=w1+w2
-il=p/(sqrt(3)*vl*cos(t))
-disp("Watts",p,"Total Power supplied is")
-disp(pf,"Power factor is")
+clc
+w1=3000 //Assigning values to parameters
+w2=5000
+vl=400
+t=atan(sqrt(3)*(w2-w1)/(w1+w2))
+pf=cos(t)
+p=w1+w2
+il=p/(sqrt(3)*vl*cos(t))
+disp("Watts",p,"Total Power supplied is")
+disp(pf,"Power factor is")
disp("Amperes",il,"The line current is") \ No newline at end of file