summaryrefslogtreecommitdiff
path: root/55/CH6/EX6.15/6ex15.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /55/CH6/EX6.15/6ex15.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 '55/CH6/EX6.15/6ex15.sci')
-rwxr-xr-x55/CH6/EX6.15/6ex15.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/55/CH6/EX6.15/6ex15.sci b/55/CH6/EX6.15/6ex15.sci
new file mode 100755
index 000000000..d88badf97
--- /dev/null
+++ b/55/CH6/EX6.15/6ex15.sci
@@ -0,0 +1,6 @@
+p=12; //total number of students
+t=3; //number of teams or partition
+disp('each partition of the students can be arranged in 3! ways as an ordered partition')
+r=factorial(12)/(factorial(4)*factorial(4)*factorial(4)) //number of ordered partitions
+m=r/factorial(t); //number of unordered partitions
+disp(m,'number of ways that 12 students can be partitioned into three teams so that each team consists of 4 students') \ No newline at end of file