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 /944/CH7/EX7.1 | |
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 '944/CH7/EX7.1')
-rwxr-xr-x | 944/CH7/EX7.1/example7_1_TACC.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/944/CH7/EX7.1/example7_1_TACC.sce b/944/CH7/EX7.1/example7_1_TACC.sce new file mode 100755 index 000000000..191ef6e97 --- /dev/null +++ b/944/CH7/EX7.1/example7_1_TACC.sce @@ -0,0 +1,29 @@ +//example 7.1
+
+clear;
+clc;
+
+//Given:
+N=20;//no, of particles
+N1=4;//no. of particles in E1 energy level
+N2=4;//no. of particles in E2 energy level
+N3=6;//no. of particles in E3 energy level
+N4=3;//no. of particles in E4 energy level
+N5=3;//no. of particles in E5 energy level
+//To find the number of ways of distributing N particles
+N!=prod(1:N);
+N1!=prod(1:N1);
+N2!=prod(1:N2);
+N3!=prod(1:N3);
+N4!=prod(1:N4);
+N5!=prod(1:N5);
+n=N1!*N2!*N3!*N4!*N5!;
+W=N!/n;//no. of ways of distributing
+disp(W,'The no. of ways of distributing the particles is ');
+
+
+
+
+
+
+
|