summaryrefslogtreecommitdiff
path: root/2276/CH6/EX6.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2276/CH6/EX6.8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2276/CH6/EX6.8')
-rwxr-xr-x2276/CH6/EX6.8/chapter6_ex8.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2276/CH6/EX6.8/chapter6_ex8.sce b/2276/CH6/EX6.8/chapter6_ex8.sce
new file mode 100755
index 000000000..10d17f9d2
--- /dev/null
+++ b/2276/CH6/EX6.8/chapter6_ex8.sce
@@ -0,0 +1,18 @@
+clc
+clear
+
+//input
+y1=0.01-(%i*0.03);//first admittance in mho
+y2=0.05+(%i*0);//second admittance in mho
+y3=%i*0.05;//third admittance in mho
+//three admittances are connected in parallel
+v=250;//supply voltage in volts
+
+//calculations
+y=y1+y2+y3;//total admittance in mho
+Y=(((real(y)^2)+(imag(y)^2)))^0.5;//magnitude of total admittance in mho
+phi=(180/%pi)*atan((imag(y))/(real(y)));//phase angle in degrees
+i=v*Y;//current in amperes
+
+//output
+mprintf('the total current is %3.1f A leading on the voltage by %3.1f degrees',i,phi)