From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 542/CH1/EX1.1/Example_1_1.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 542/CH1/EX1.1/Example_1_1.sce (limited to '542/CH1/EX1.1/Example_1_1.sce') 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 -- cgit