Add Makefile and correction for exercices
This commit is contained in:
parent
ca298ed36e
commit
32c2173809
2 changed files with 18 additions and 2 deletions
16
logique-programmable/exercices/Makefile
Normal file
16
logique-programmable/exercices/Makefile
Normal file
|
@ -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
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue