Qurak

Use logical operators

How-to 7 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

Stap 1
(True && False) || !True
Uitvoer
False
Stap 2
Or[And[True, False], Not[True]]
Uitvoer
False
Stap 3
BooleanConvert[(a && b) || (!a && b)]
Uitvoer
(a && b) || ( !a && b)
Stap 4
Resolve[ForAll[{a, b}, Equivalent[(a && b) || (!a && b), b]], {a, b}, Booleans]
Uitvoer
Resolve[ForAll[{a, b}, (a && b) || ( !a && b) ⧦ b], {a, b}, Booleans]
Stap 5
Resolve[ForAll[a, Exists[b, (a && b) || (!a && b)]], {a, b}, Booleans]
Uitvoer
Resolve[ForAll[a, Exists[b, (a && b) || ( !a && b)]], {a, b}, Booleans]
Stap 6
Resolve[ForAll[{a, b}, Implies[a && b, b]], {a, b}, Booleans]
Uitvoer
Resolve[ForAll[{a, b}, Implies[a && b, b]], {a, b}, Booleans]
Stap 7
SatisfiableQ[(a && b) && (!a || !b), {a, b}]
Uitvoer
False

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client