* doc/org/tut03.org: Typos.
This commit is contained in:
parent
66839b1a29
commit
f117159ec4
1 changed files with 3 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ simplifications called /trivial identities/. For instance
|
||||||
=formula::F(formula::X(formula::tt()))= will return the same formula
|
=formula::F(formula::X(formula::tt()))= will return the same formula
|
||||||
as =formula::tt()=. These simplifications are those that involve the
|
as =formula::tt()=. These simplifications are those that involve the
|
||||||
true and false constants, impotence (=F(F(e))=F(e)=), involutions
|
true and false constants, impotence (=F(F(e))=F(e)=), involutions
|
||||||
(=Not(Not(e)=e=), associativity
|
(=Not(Not(e))=e=), associativity
|
||||||
(=And({And({e1,e2},e3})=And({e1,e2,e3})=). See [[https://spot.lrde.epita.fr/tl.pdf][tl.pdf]] for a list of
|
(=And({And({e1,e2},e3})=And({e1,e2,e3})=). See [[https://spot.lrde.epita.fr/tl.pdf][tl.pdf]] for a list of
|
||||||
these /trivial identities/.
|
these /trivial identities/.
|
||||||
|
|
||||||
|
|
@ -113,7 +113,7 @@ detail of the top-level operator in the formula.
|
||||||
|
|
||||||
std::cout << f << '\n';
|
std::cout << f << '\n';
|
||||||
|
|
||||||
// kindstar() prints the name of the operator
|
// kindstr() prints the name of the operator
|
||||||
// size() return the number of operands of the operators
|
// size() return the number of operands of the operators
|
||||||
std::cout << f.kindstr() << ", " << f.size() << " children\n";
|
std::cout << f.kindstr() << ", " << f.size() << " children\n";
|
||||||
// operator[] accesses each operand
|
// operator[] accesses each operand
|
||||||
|
|
@ -157,7 +157,7 @@ The Python equivalent is similar:
|
||||||
|
|
||||||
print(f)
|
print(f)
|
||||||
|
|
||||||
# kindstar() prints the name of the operator
|
# kindstr() prints the name of the operator
|
||||||
# size() return the number of operands of the operators
|
# size() return the number of operands of the operators
|
||||||
print("{}, {} children".format(f.kindstr(), f.size()))
|
print("{}, {} children".format(f.kindstr(), f.size()))
|
||||||
# [] accesses each operand
|
# [] accesses each operand
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue