tech:logique_-_algebre_de_boole
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:logique_-_algebre_de_boole [2025/05/15 11:11] – Jean-Baptiste | tech:logique_-_algebre_de_boole [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Logique - Algèbre de Boole | ||
| + | |||
| + | Voir : | ||
| + | * [[https:// | ||
| + | * Table de vérité | ||
| + | * Tableau de Karnaugh | ||
| + | * Théorème de Morgan | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | |||
| + | **Ne pas confondre la logique booléenne avec la logique aristotélicienne / scolastique ! | ||
| + | ** | ||
| + | |||
| + | ## En Python | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | Voir aussi : | ||
| + | * [Algorithmique - Techniques fondamentales de programmation](https:// | ||
| + | |||
| + | |||
| + | |||
| + | ## En bash | ||
| + | |||
| + | ### combine (moreutils) | ||
| + | |||
| + | ~~~bash | ||
| + | echo aaa > a.txt | ||
| + | echo bbb > b.txt | ||
| + | echo common | tee a.txt b.txt | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ cat a.txt | ||
| + | aaa | ||
| + | common | ||
| + | |||
| + | $ cat b.txt | ||
| + | bbb | ||
| + | common | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ combine a.txt and b.txt | ||
| + | common | ||
| + | |||
| + | $ combine a.txt or b.txt | ||
| + | aaa | ||
| + | common | ||
| + | bbb | ||
| + | common | ||
| + | |||
| + | $ combine a.txt xor b.txt | ||
| + | aaa | ||
| + | bbb | ||
| + | |||
| + | $ combine a.txt not b.txt | ||
| + | aaa | ||
| + | |||
| + | $ combine a.txt or b.txt | sort | uniq | ||
| + | aaa | ||
| + | bbb | ||
| + | common | ||
| + | ~~~ | ||
| + | |||
