summaryrefslogtreecommitdiff
path: root/213/CH10/EX10.22/10_22.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /213/CH10/EX10.22/10_22.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 '213/CH10/EX10.22/10_22.sce')
-rwxr-xr-x213/CH10/EX10.22/10_22.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/213/CH10/EX10.22/10_22.sce b/213/CH10/EX10.22/10_22.sce
new file mode 100755
index 000000000..0d10306f2
--- /dev/null
+++ b/213/CH10/EX10.22/10_22.sce
@@ -0,0 +1,16 @@
+//To find the pressure
+clc
+//Given:
+W=4*1000 //N
+r2=50,r1=100 //mm
+//Solution:
+//Calculating the maximum pressure
+pmax=W/(2*%pi*r2*(r1-r2)) //N/mm^2
+//Calculating the minimum pressure
+pmin=W/(2*%pi*r1*(r1-r2)) //N/mm^2
+//Calculating the average pressure
+pav=W/(%pi*(r1^2-r2^2)) //N/mm^2
+//Results:
+printf("\n\n Maximum pressure, pmax = %.4f N/mm^2.\n",pmax)
+printf(" Minimum pressure, pmin = %.4f N/mm^2.\n",pmin)
+printf(" Average pressure, pav = %.2f N/mm^2.\n\n",pav) \ No newline at end of file