summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.37/3_37.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /569/CH3/EX3.37/3_37.sci
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 '569/CH3/EX3.37/3_37.sci')
-rwxr-xr-x569/CH3/EX3.37/3_37.sci24
1 files changed, 24 insertions, 0 deletions
diff --git a/569/CH3/EX3.37/3_37.sci b/569/CH3/EX3.37/3_37.sci
new file mode 100755
index 000000000..5c278f392
--- /dev/null
+++ b/569/CH3/EX3.37/3_37.sci
@@ -0,0 +1,24 @@
+//to find Cq and its possible errors
+
+clc;
+d=12.5;
+A=(%pi/4)*d^2*10^-6;
+W=392;
+t=600;
+p=1000;
+g=9.81;
+h=3.66;
+Cq=W/(t*p*A*sqrt(2*g*h));
+disp(Cq,'Cq');
+dW=.23/W;
+dt=2/t;
+dp=.1/100;
+dA=2*.002;
+dg=.1/100;
+dh=.003/h;
+dd=.002;
+dCq=Cq*(dW+dt+dp+dA+dg/2+dh/2);
+disp(dCq*100/Cq,'%age absolute error');
+
+sdCq=Cq*sqrt(dW^2+dt^2+dp^2+4*dd^2+.25*(dg^2+dh^2));
+disp(sdCq*100/Cq,'%age standard deviation error');