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 /542/CH1/EX1.1/Example_1_1.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 '542/CH1/EX1.1/Example_1_1.sce')
-rwxr-xr-x | 542/CH1/EX1.1/Example_1_1.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/542/CH1/EX1.1/Example_1_1.sce b/542/CH1/EX1.1/Example_1_1.sce new file mode 100755 index 000000000..51fa689c1 --- /dev/null +++ b/542/CH1/EX1.1/Example_1_1.sce @@ -0,0 +1,18 @@ +clear;
+clc;
+printf("\n Example 1.1");
+//Given size analysis of a powdered material
+d=[1,101];//diameter of the powdered particles
+x=[0,1];//mass fractions of the particles
+plot2d(d,x,style=2,rect=[0,0,120,1])
+xtitle("size analysis of powder","particle size(um)","mass fraction(x)")
+d=100*x+1; // from the given plot
+//calculation of surface mean diameter
+function[ds]=surface_mean_diameter(x0,x1)
+ ds=1/(integrate('1/(100*x+1)','x',x0,x1))
+ funcprot(0)
+endfunction
+ds=surface_mean_diameter(0,1);//deduced surface mean diameter according to def.
+printf("\n The surface mean diameter is %fum",ds);
+
+
\ No newline at end of file |