diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1955/CH7/EX7.11/example11.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1955/CH7/EX7.11/example11.sce')
-rwxr-xr-x | 1955/CH7/EX7.11/example11.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1955/CH7/EX7.11/example11.sce b/1955/CH7/EX7.11/example11.sce new file mode 100755 index 000000000..c032eca06 --- /dev/null +++ b/1955/CH7/EX7.11/example11.sce @@ -0,0 +1,14 @@ +clc
+clear
+//input data
+P1=6600//Initial power developed by the turbine in kW
+N1=100//Initial speed of the turbine in rpm
+H1=30//Initial head of the turbine in m
+H2=18//Final head of the turbine in m
+
+//calculations
+N2=N1*((H2/H1)^(1/2))//The final speed of the turbine in rpm
+P2=P1*((H2/H1)^(3/2))//The final power developed by the turbine in kW
+
+//output
+printf('(1)The final speed of the turbine is %3.2f rpm\n(2)The final power developed by the turbine is %3i kW',N2,P2)
|