From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3860/CH3/EX3.40/Ex3_40.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 3860/CH3/EX3.40/Ex3_40.sce (limited to '3860/CH3/EX3.40/Ex3_40.sce') diff --git a/3860/CH3/EX3.40/Ex3_40.sce b/3860/CH3/EX3.40/Ex3_40.sce new file mode 100644 index 000000000..509c5c324 --- /dev/null +++ b/3860/CH3/EX3.40/Ex3_40.sce @@ -0,0 +1,21 @@ +//Example 3.40 Simplify expression using k-map +clc; //clears the console window +clear; //clears the variable browser +disp('F = m(2,3,4,6,9,11,12)+ d(0,1,14,15)') +disp(' C''D'' C''D CD CD''') +disp('A''B'' X 1 1 0') +disp('A''B X 0 0 1') +disp('AB 1 0 X 1') +disp('AB'' 1 1 X 0') //The kmap for F is displayed// +disp('G = m(2,3,4,6,9,11,12)+ d(0,1,14,15)') +disp(' C''D'' C''D CD CD''') +disp('A''B'' X 0 1 0') +disp('A''B X 0 0 0') +disp('AB 0 0 X 1') +disp('AB'' 1 1 X 1') //The kmap for G is displayed// +disp('The one solution for F and G:') +disp('F = B''D + ABD''+ A''D''') +disp('G = AC + ABD''+ CD''') +disp('The other solution for F and G: ') +disp('F = B''D + A''CD'' + BD''') +disp('G = AC + ABD'' + A''CD''') -- cgit