CnfSymbol | R Documentation |
Representation of Symbols used in CNF formulas. Symbols have a name and a
domain (a set of possible values), and are stored in a CnfUniverse
.
Once created, it is currently not intended to modify or delete symbols.
Symbols can be used in CNF formulas by creating CnfAtom
objects, either
by using the %among%
operator or by using the CnfAtom()
constructor
explicitly.
This is part of the CNF representation tooling, which is currently considered experimental; it is for internal use.
CnfSymbol(universe, name, domain)
universe |
( |
name |
( |
domain |
( |
A new CnfSymbol
object.
Other CNF representation objects:
CnfAtom()
,
CnfClause()
,
CnfFormula()
,
CnfUniverse()
u = CnfUniverse()
X = CnfSymbol(u, "X", c("a", "b", "c"))
# Use symbols to create CnfAtom objects
X %among% c("a", "b")
X %among% "a"
X %among% character(0)
X %among% c("a", "b", "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.