summaryrefslogtreecommitdiff
path: root/1962/CH9/EX9.7/example9_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1962/CH9/EX9.7/example9_7.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 '1962/CH9/EX9.7/example9_7.sce')
-rwxr-xr-x1962/CH9/EX9.7/example9_7.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1962/CH9/EX9.7/example9_7.sce b/1962/CH9/EX9.7/example9_7.sce
new file mode 100755
index 000000000..7072f5d91
--- /dev/null
+++ b/1962/CH9/EX9.7/example9_7.sce
@@ -0,0 +1,17 @@
+
+//example 9.7
+//page 320
+clc; funcprot(0);
+//initialisation of variable
+epsilon=0.025;//roughness
+L=500;
+pi=3.14;
+g=9.81;
+Q=0.1;
+S=5.43/100;
+K=Q/sqroot(S);
+//solving for D
+deff('y=f(D)','y=3.14/4*sqroot(2*9.81)*(2*log10(D/0.025)+1.14)*D^2.5-.3');
+[x]=fsolve(0.1,f);
+disp(x,"diameter(m):");
+clear