- #1

- 798

- 1

Here are the instructions:

This program generates exact minimal SOP or POS expression from minterm or maxterm lists, using the Quine-McCluskey algorithm.

General syntax: lm(VARS, TERMS, DON'T-CARES, MODE)

VARS: STRING of single-character variable names. e.g. "ABCD"

TERMS: LIST of Minterms (in SOP mode) or Maxterms (in POS mode). e.g {1,3,5,6}

DON'T CARES: (optional) LIST of Don't-care terms

MODE: (optional) 0 for POS mode, 1 for SOP mode (default)

NOTE: the terms must be integers. Therefore, you MUST be in either EXACT or AUTO mode.

If you forget the syntax, execute the program with no arguments: lm() to see the help screen.

Example 1:

f(a,b,c,d) = Σm(4,5,6,7,8) + d(10,11,12,13,14,15)

lm("abcd",{4,5,6,7,8},{10,11,12,13,14,15})

returns "b+ad'"

Example 2:

f(a,b,c,d) = ΠM(4,5,6,7,8) + d(10,11,12,13,14,15)

lm("abcd",{4,5,6,7,8},{10,11,12,13,14,15},0)

returns "(b')(a'+d)"

Now when I even type this exact in my calculator, it doesnt give me an output.

Here is what I type:

"lm("abcd",{4,5,6,7,8},{10,11,12,13,14,15})"

Any ideas? Do I need to "activate" the program or something? Or is there some other area I should be typing this in?