diff --git a/logique-programmable/exercices/Makefile b/logique-programmable/exercices/Makefile new file mode 100644 index 0000000..4bce23d --- /dev/null +++ b/logique-programmable/exercices/Makefile @@ -0,0 +1,16 @@ +filename=$(shell basename $(shell pwd)) +timestamp=$(shell date +%Y-%m-%d_%H:%M) + +all: snapshot + +snapshot: main.tex + @latexmk -pdf main.tex >/dev/null 2>&1 + @if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \ + touch ${filename}_tmp.pdf; \ + rm ${filename}*.pdf; \ + cp build/main.pdf ${filename}_${timestamp}.pdf; \ + echo "Updated"; \ + fi + +clean: + @rm -rf build 2>/dev/null diff --git a/logique-programmable/exercices/main.tex b/logique-programmable/exercices/main.tex index 35fdf4f..ea67cc9 100644 --- a/logique-programmable/exercices/main.tex +++ b/logique-programmable/exercices/main.tex @@ -74,7 +74,7 @@ \begin{tabularx}{0.7\linewidth}{X|Y|YYY|Y} \toprule - & D & C & B & A & H \\ + & D & A & B & C & H \\ \midrule 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 & 1 & 0 \\ @@ -99,7 +99,7 @@ b/ Exprimer $H(A,B,C,D)$ sous la forme disjonctive. \begin{equation*} - H(A,B,C,D) = \bar{A}BC\bar{D} + \bar{A}B\bar{C}D + AB\bar{C}D + A\bar{B}CD + \bar{A}BCD + H(A,B,C,D) = AB\bar{C}\bar{D} + \bar{A}B\bar{C}D + \bar{A}BCD + A\bar{B}CD + AB\bar{C}D \end{equation*} \subsection{Exercice 4}