Debian Codegraph @

texmf-dist/doc/latex/resolsysteme/ResolSysteme-exemples.tex

raw
1 % !TeX document-id = {f9c98d52-d889-44e1-8a1d-1b1aa5b344f6}
2 % !TeX TXS-program:compile = txs:///pdflatex
3
4 \documentclass[french,a4paper,10pt]{article}
5 \def\RSver{0.1.8}
6 \usepackage[margin=1.5cm]{geometry}
7 \usepackage{ResolSysteme}
8 \usepackage{systeme}
9 \usepackage{babel}
10 \usepackage[most]{tcolorbox}
11 \sisetup{locale=FR,output-decimal-marker={,}}
12 \newtcblisting{ShowCodeTeX}[1][]{colback=white,colframe=red!75!black,listing options={style=tcblatex,texcsstyle=*\color{red!70!black}},#1}
13
14 \begin{document}
15
16 \part*{ResolSysteme (\RSver), version \og classique \fg{}}
17
18 \section{Préambule sans utiliser Python}
19
20 \begin{ShowCodeTeX}[listing only]
21 \documentclass[french,a4paper,10pt]{article}
22 \usepackage[margin=1.5cm]{geometry}
23 \usepackage{ResolSysteme} %version classique
24 \usepackage{systeme}
25 \sisetup{locale=FR,output-decimal-marker={,}}
26 \end{ShowCodeTeX}
27
28 \section{Affichage d'une matrice, 2×2 ou 3×3 ou 4×4}
29
30 \begin{ShowCodeTeX}
31 On considère les matrices $A=\AffMatrice(1,2 § 3,4)$
32 et $B=\AffMatrice[n](-1,1/3,4 § 1/3,4,-1 § -1,0,0)$
33 et $C=\AffMatrice(1,2,3,4 § 5,6,7,0 § 1,1,1,1 § 2,-3,-5,-6)$.
34 \end{ShowCodeTeX}
35
36 \section{Calculs avec des matrices, 2×2 ou 3×3 ou 4×4}
37
38 \begin{ShowCodeTeX}
39 $\ProduitMatrices(1,2)(3 § 4)[Aff]$ et $\ProduitMatrices(1,2)(3,4 § 5,6)[Aff]$ \\
40 $\ProduitMatrices(-5,6 § 1,4)(2 § 7)[Aff]$ et $\ProduitMatrices(-5,6 § 1,4)(2,-4 § 7,0)[Aff]$
41 \end{ShowCodeTeX}
42
43 \begin{ShowCodeTeX}
44 $\ProduitMatrices(1,2,3)(4 § 5 § 6)[Aff]$ et $\ProduitMatrices(1,2,3)(1,1,1 § 2,1,5 § 0,5,-6)[Aff]$\\
45 $\ProduitMatrices(1,1,1 § 2,1,5 § 0,5,-6)(1 § 2 § 3)[Aff]$ et
46 $\ProduitMatrices(1,1,1 § 2,1,5 § 0,5,-6)(1,2,3 § -5,-4,2 § 3,3,10)[Aff]$
47 \end{ShowCodeTeX}
48
49 \begin{ShowCodeTeX}
50 $\ProduitMatrices(1,2,3,4)(5 § 6 § 7 § 8)[Aff]$\\
51 $\ProduitMatrices(1,2,3,4)(1,1,1,5 § 2,1,5,6 § 0,5,-6,0 § 1,-5,4,2)[Aff]$\\
52 $\ProduitMatrices(1,1,1,5 § 2,1,5,6 § 0,5,-6,0 § 1,-5,4,2)(1 § 2 § 3 § 4)[Aff]$\\
53 $\ProduitMatrices(1,1,1,5 § 2,1,5,6 § 0,5,-6,0 § 1,-5,4,2)(1,5,4,0 § 2,-1,-1,5 § 3,0,1,2, § 4,6,9,10)[Aff]$
54 \end{ShowCodeTeX}
55
56 \begin{ShowCodeTeX}
57 $\CarreMatrice(-5,6 § 1,4)[Aff]$ \\
58 $\CarreMatrice(-5,6,8 § 1,4,-9 § 1,-1,1)[Aff]$\\
59 $\CarreMatrice(1,2,3,4 § 5,6,7,0 § 1,1,1,1 § 2,-3,-5,-6)[Aff]$
60 \end{ShowCodeTeX}
61
62 \section{Déterminant d'une matrice, 2×2 ou 3×3 ou 4×4}
63
64 \begin{ShowCodeTeX}
65 Le déterminant de $A=\AffMatrice(1,2 § 3,4)$ est
66 $\det(A)=\DetMatrice(1,2 § 3,4)$.
67 \end{ShowCodeTeX}
68
69 \begin{ShowCodeTeX}
70 Le déterminant de $A=\AffMatrice(-1,0.5 § -1/2,4)$ est
71 $\det(A)=\DetMatrice[dec](-1,0.5 § -1/2,4)$.
72 \end{ShowCodeTeX}
73
74 \begin{ShowCodeTeX}
75 Le dét. de $A=\begin{pNiceMatrix} -1&\frac13&4 \\ \frac13&4&-1 \\ -1&0&0 \end{pNiceMatrix}$ est
76 $\det(A) \approx \DetMatrice[dec=3](-1,1/3,4 § 1/3,4,-1 § -1,0,0)$.
77 \end{ShowCodeTeX}
78
79 \begin{ShowCodeTeX}
80 Le dét. de $A=\begin{pNiceMatrix} 1&2&3&4\\5&6&7&0\\1&1&1&1\\2&-3&-5&-6 \end{pNiceMatrix}$
81 est $\det(A)=\DetMatrice(1,2,3,4 § 5,6,7,0 § 1,1,1,1 § 2,-3,-5,-6)$.
82 \end{ShowCodeTeX}
83
84 \section{Inverse d'une matrice, 2×2 ou 3×3 ou 4×4}
85
86 \begin{ShowCodeTeX}
87 L'inverse de $A=\begin{pNiceMatrix} 1&2 \\ 3&4 \end{pNiceMatrix}$ est
88 $A^{-1}=\MatriceInverse<cell-space-limits=2pt>(1,2 § 3,4)$.
89 \end{ShowCodeTeX}
90
91 \begin{ShowCodeTeX}
92 L'inverse de $A=\begin{pNiceMatrix} 1&2 \\ 3&4 \end{pNiceMatrix}$ est
93 $A^{-1}=\MatriceInverse*<cell-space-limits=2pt>(1,2 § 3,4)$.
94 \end{ShowCodeTeX}
95
96 \begin{ShowCodeTeX}
97 L'inverse de $A=\begin{pNiceMatrix} 1&2 \\ 3&4 \end{pNiceMatrix}$ est
98 $A^{-1}=\MatriceInverse[d]<cell-space-limits=2pt>(1,2 § 3,4)$.
99 \end{ShowCodeTeX}
100
101 \begin{ShowCodeTeX}
102 L'inverse de $A=\begin{pNiceMatrix} 1&2&3\\4&5&6\\7&8&8 \end{pNiceMatrix}$ est
103 $A^{-1}=\MatriceInverse<cell-space-limits=2pt>(1,2,3 § 4,5,6 § 7,8,8)$.
104 \end{ShowCodeTeX}
105
106 \begin{ShowCodeTeX}
107 L'inverse de $A=\begin{pNiceMatrix} 1&2&3\\4&5&6\\7&8&8 \end{pNiceMatrix}$ est
108 $A^{-1}=\MatriceInverse[n]<cell-space-limits=2pt>(1,2,3 § 4,5,6 § 7,8,8)$.
109 \end{ShowCodeTeX}
110
111 \begin{ShowCodeTeX}
112 L'inverse de $A=\begin{pNiceMatrix} 1&2&3&4\\5&6&7&0\\1&1&1&1\\2&-3&-5&-6 \end{pNiceMatrix}$
113 est $A^{-1}=\MatriceInverse[n]<cell-space-limits=2pt>(1,2,3,4 § 5,6,7,0 § 1,1,1,1 § 2,-3,-5,-6)$.
114 \end{ShowCodeTeX}
115
116 \section*{Résolution d'un système, 2×2 ou 3×3 ou 4×4}
117
118 \begin{ShowCodeTeX}
119 La solution de $\systeme{-9x-8y=-8,3x-6y=-7}$ est $\mathcal{S}=%
120 \left\lbrace \SolutionSysteme(-9,-8 § 3,-6)(-8,-7) \right\rbrace$.
121 \end{ShowCodeTeX}
122
123 \begin{ShowCodeTeX}
124 La solution de $\systeme{-9x-8y=-8,3x-6y=-7}$ est $\mathcal{S}=%
125 \left\lbrace \SolutionSysteme*[d](-9,-8 § 3,-6)(-8,-7) \right\rbrace$.
126 \end{ShowCodeTeX}
127
128 \begin{ShowCodeTeX}
129 La solution de $\systeme{x+y+z=-1,3x+2y-z=6,-x-y+2z=-5}$ est $\mathcal{S}=%
130 \left\lbrace \SolutionSysteme(1,1,1 § 3,2,-1 § -1,-1,2)(-1,6,-5) \right\rbrace$.
131 \end{ShowCodeTeX}
132
133 \begin{ShowCodeTeX}
134 La solution de $\systeme{x+y+z=-1,3x+2y-z=6,-x-y+2z=-5}$ est donnée par $X=%
135 \SolutionSysteme(1,1,1 § 3,2,-1 § -1,-1,2)(-1,6,-5)[Matrice]$.
136 \end{ShowCodeTeX}
137
138 \begin{ShowCodeTeX}
139 La solution de $\systeme{3x+y-2z=-1,2x-y+z=4,x-y-2z=5}$ est $\mathcal{S}=%
140 \left\lbrace \SolutionSysteme(3,1,-2 § 2,-1,1 § 1,-1,-2)(-1,4,5) \right\rbrace$.
141 \end{ShowCodeTeX}
142
143 \begin{ShowCodeTeX}
144 La solution de $\systeme{3x+y-2z=-1,2x-y+z=4,x-y-2z=5}$ est $\mathcal{S}=%
145 \left\lbrace \SolutionSysteme[d](3,1,-2 § 2,-1,1 § 1,-1,-2)(-1,4,5) \right\rbrace$.
146 \end{ShowCodeTeX}
147
148 \begin{ShowCodeTeX}
149 La solution de $\systeme[xyzt]{y+z+t=1,x+z+t=-1,x+y+t=1,x+y+z=0}$ est $\mathcal{S}=%
150 \left\lbrace\SolutionSysteme[d](0,1,1,1 § 1,0,1,1 § 1,1,0,1 § 1,1,1,0)(1,-1,1,0)\right\rbrace$.
151 \end{ShowCodeTeX}
152
153 \begin{ShowCodeTeX}
154 La solution de $\systeme[xyzt]{x+2y+3z+4t=-10,5x+6y+7z=0,x+y+z+t=4,-2x-3y-5z-6t=7}$ est $X=
155 \SolutionSysteme
156 [dec]<cell-space-limits=2pt>
157 (1,2,3,4 § 5,6,7,0 § 1,1,1,1 § -2,-3,-5,-6)(-10,0,4,7)
158 [Matrice]$
159 \end{ShowCodeTeX}
160
161 \section{État stable d'une graphe probabiliste, 2×2}
162
163 \begin{ShowCodeTeX}
164 L'état stable du gr. prob. de matrice
165 $M=\AffMatrice[dec](0.72,0.28 § 0.12,0.88)$
166
167 est $\Pi = \EtatStable[d](0.72,0.28 § 0.12,0.88)$
168 ou $\Pi = \EtatStable[dec](0.72,0.28 § 0.12,0.88)$.
169 \end{ShowCodeTeX}
170
171 \end{document}