Free to use, no account

Boolsk algebrakalkulator

Skriv inn et logisk uttrykk for å få minimerte sum-av-produkter- og produkt-av-summer-former. Kontroller hver rad i sannhetstabellen, og vis et Karnaugh-kart for uttrykk med to til fire variabler.

Bruk variabelbokstaver A–F, konstantene 0 og 1 og symbolene ! & ^ |. Parenteser grupperer uttrykk.

Nøyaktig minimering for godkjente uttrykk. Opptil 6 variabler og 180 tegn; Karnaugh-diagrammer vises for 2–4 variabler. Ekvivalente minimale former kan variere. Dette er ikke en kretssimulator eller et formelt bevisverktøy.

Hvordan forenkler jeg et boolsk uttrykk?

Skriv inn et uttrykk med variablene A–F og boolske operatorer, og velg deretter Forenkle. Sammenlign SOP- og POS-formene med den genererte sannhetstabellen. For to til fire variabler viser verktøyet også et Karnaugh-diagram i Gray-rekkefølge.

Veiledning

Slik bruker du boolean-algebra-calculator

The Boolean Algebra Calculator reads a logic expression with variables A to F and gives the shortest sum-of-products (SOP) and product-of-sums (POS) forms, the full truth table, and the list of minterms. For two to four variables it also draws a Karnaugh map. It checks the work against the truth table. It is not a circuit simulator or a formal proof tool.

Slik gjør du

  1. Type an expression using the letters A to F, the constants 0 and 1, and the operators ! (not), & (and), ^ (xor) and | (or). Parentheses group parts.
  2. Press Simplify expression. The result lists the simplified SOP and POS, the variables used, and the minterms, which are the row numbers where the expression is true.
  3. Read the truth table below it, one row per combination. With two to four variables you also get a Karnaugh map in Gray-code order.
  4. Use Load example to try A OR NOT A, Copy simplified forms to copy the text, or Reset to start again.

Eksempler

Always true

Du skriver inn
Uttrykk
A OR NOT A
Du får
SOP
1
POS
1
Variabler
A
Mintermer
0, 1

Whatever A is, either A or not A is true, so both rows give 1. This is the sample the Load example button uses.

Kjørt med verktøyets egen kode.

Redundant terms collapse

Du skriver inn
Uttrykk
A & B | A & !B
Du får
SOP
A
POS
A
Mintermer
2, 3

The two terms differ only in B, so B drops out and only A remains. The minterms 2 and 3 are the rows where A is 1.

Kjørt med verktøyets egen kode.

Exclusive or

Du skriver inn
Uttrykk
A ^ B
Du får
SOP
!A & B | A & !B
POS
(A | B) & (!A | !B)
Mintermer
1, 2

XOR is true when exactly one input is true, which is rows 01 and 10. It has no shorter form, so SOP and POS keep both terms.

Kjørt med verktøyets egen kode.

Implicit and with plus

Du skriver inn
Uttrykk
A + B C
Du får
SOP
B & C | A
POS
(A | C) & (A | B)
Mintermer
3, 4, 5, 6, 7

The plus sign means or, and letters written side by side mean and. So the expression is A or (B and C). Rows 3 to 7 of the 8-row table are true.

Kjørt med verktøyets egen kode.

A letter outside A to F

Du skriver inn
Uttrykk
G & A
Du får
Melding
Check the expression. Use A–F, supported Boolean operators and balanced parentheses.

Only the letters A to F are allowed, so G triggers the message. The same message appears for unbalanced brackets, a missing operand, or an expression with no variable.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Simplify a logic expression from a digital electronics or computer science course.
  • Check whether two hand-written expressions are equal by comparing their truth tables.
  • Read off the minterms needed to fill a Karnaugh map by hand.
  • Find a smaller form to draw with fewer logic gates, such as a homework circuit.

Begrensninger

  • At most 6 variables (A to F), 180 characters and 100 parts in one expression. Variables are not case sensitive.
  • The Karnaugh map appears only for 2, 3 or 4 variables. The truth table and the minimized forms work up to 6.
  • More than one minimal form can exist for the same function. The tool shows one of them, which may differ from your hand answer but still be correct.
  • It does not draw circuits, check timing, or prove statements in formal logic. Expressions with only constants and no variable are rejected.

Tips

  • Use brackets when mixing operators. The order is: not first, then and, then xor, then or, so A | B & C means A or (B and C).
  • Compare your own answer with the truth table rows rather than the exact wording of the SOP.
  • The words AND, OR, NOT and XOR are accepted too, as are * for and, + for or and ~ for not.

Vanlige spørsmål

How do I simplify a Boolean expression here?

Type it using A to F and the operators, then press Simplify expression. Compare the SOP and POS results with the truth table. For two to four variables you also see a Karnaugh map.

What do SOP and POS mean?

Sum of products joins AND terms with OR, such as A & B | C. Product of sums joins OR clauses with AND, such as (A | B) & C. Both are worked out from the same truth table.

What is a minterm?

It is the number of a truth table row where the expression is true. Rows count in binary with A as the leftmost, highest digit, so row 5 with three variables is A=1, B=0, C=1.

Which symbols are accepted?

The page lists ! & ^ |. The code also reads the words AND, OR, NOT and XOR, plus *, + and ~, and treats two letters side by side as AND. Lowercase letters are changed to capitals.

Why does my answer look different from the textbook?

Some functions have several equally short forms, and the tool picks one. If both match the truth table, both are correct. Equal results mean the same table, not the same text.

When is the Karnaugh map shown?

For expressions that use two, three or four distinct variables. The rows and columns follow Gray code, where only one bit changes between neighbours. With one, five or six variables no map is drawn.

Is my expression uploaded?

No. Reading, minimizing, the truth table and the map are all done in your browser, and the expression is not sent or saved by the tool.

Kilder

Ofte stilte spørsmål

Hvordan forenkler jeg et boolsk uttrykk?

Skriv inn et uttrykk med variablene A–F og boolske operatorer, og velg deretter Forenkle. Sammenlign SOP- og POS-formene med den genererte sannhetstabellen. For to til fire variabler viser verktøyet også et Karnaugh-diagram i Gray-rekkefølge.

Lastes det boolske uttrykket mitt opp?

Nei. Tolking, minimering, generering av sannhetstabell og visning av Karnaugh-kart kjøres i nettleseren. Uttrykket lastes ikke opp eller lagres av dette verktøyet.

Hva betyr SOP og POS i boolsk algebra?

SOP kombinerer AND-ledd med OR; POS kombinerer OR-ledd med AND. Verktøyet beregner begge formene fra samme sannhetstabell.

Når vises et Karnaugh-diagram?

Et Karnaugh-diagram sortert etter Gray-kode vises for uttrykk med to, tre eller fire variabler. Sannhetstabellen og de minimerte formene støtter opptil seks variabler.