diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /911/CH7/EX7.3 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '911/CH7/EX7.3')
-rw-r--r-- | 911/CH7/EX7.3/ex_7_3.pdf | bin | 0 -> 111593 bytes | |||
-rw-r--r-- | 911/CH7/EX7.3/ex_7_3.sce | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/911/CH7/EX7.3/ex_7_3.pdf b/911/CH7/EX7.3/ex_7_3.pdf Binary files differnew file mode 100644 index 000000000..78942bd0c --- /dev/null +++ b/911/CH7/EX7.3/ex_7_3.pdf diff --git a/911/CH7/EX7.3/ex_7_3.sce b/911/CH7/EX7.3/ex_7_3.sce new file mode 100644 index 000000000..f752cb3fb --- /dev/null +++ b/911/CH7/EX7.3/ex_7_3.sce @@ -0,0 +1,18 @@ +//example 7. 3//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+m (1) =16;
+//taking the given values//
+m (2) = log2 (m (1) )
+//making necessary calculations
+m (3) =m(2) -1;
+m (4) =m(1) /2;
+printf ('A %d-to-1 multiplexer requires ' ,m(1));
+printf( '%d select lines , The lower ',m(2));
+printf ( ' %d select lines choose ',m(3));
+printf ( ' %d-to-1multiplexer outputs. The 2 to 1 multiplexers chooses one of the output of two ' ,m(4));
+printf ( '%d-to-1 multiplexers depending on what appears in the ' ,m(4));
+printf ( ' %dth select line.', m (2) );
+//displaying the result//
\ No newline at end of file |