summaryrefslogtreecommitdiff
path: root/416/CH14/EX14.17/example14_17.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /416/CH14/EX14.17/example14_17.sce
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 '416/CH14/EX14.17/example14_17.sce')
-rwxr-xr-x416/CH14/EX14.17/example14_17.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/416/CH14/EX14.17/example14_17.sce b/416/CH14/EX14.17/example14_17.sce
new file mode 100755
index 000000000..d42566e11
--- /dev/null
+++ b/416/CH14/EX14.17/example14_17.sce
@@ -0,0 +1,16 @@
+clc
+clear
+disp('example 14.7')
+ca=200 //capacity of unit a
+cb=100 //capacity of unit b
+ra=1.5 //speed regulation of unit a
+rb=3 //speed regulation of unit b
+f=50 //frequency
+pla=100 //load on each bus
+plb=100
+raa=ra*f/(pla*ca)
+rbb=rb*f/(plb*cb)
+pa=rbb*(pla+plb)/(raa+rbb)
+pb=pla+plb-pa
+tp=pa-pla
+printf(" generation at the plant a is %dMW and \n generation at the plant b is %dMW \n transfer power from plant a to b is %dMW",pa,pb,tp) \ No newline at end of file