added logic tables
This commit is contained in:
BIN
gallery/example5.pdf
Normal file
BIN
gallery/example5.pdf
Normal file
Binary file not shown.
27
gallery/example5.typ
Normal file
27
gallery/example5.typ
Normal file
@ -0,0 +1,27 @@
|
||||
#import "/src/logic.typ": *
|
||||
#let F = $((not p -> q) or r) -> ((p and not r) or not q)$
|
||||
#let F = _implies(
|
||||
_or(
|
||||
_implies(
|
||||
_not("p"),
|
||||
"q"
|
||||
),
|
||||
"r"
|
||||
),
|
||||
_or(
|
||||
_and(
|
||||
"p",
|
||||
_not("r")
|
||||
),
|
||||
_not("q")
|
||||
)
|
||||
)
|
||||
#display(F)
|
||||
#get-atoms(F)
|
||||
|
||||
#get-components(F)
|
||||
|
||||
#{
|
||||
set text(size: 0.8em)
|
||||
truth-table(F)
|
||||
}
|
Reference in New Issue
Block a user