Skip to content

Commit f72db5d

Browse files
committed
chatgpt
1 parent 578b714 commit f72db5d

94 files changed

Lines changed: 8943 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

chatgpt1/chatgpt1.fls

Lines changed: 2015 additions & 0 deletions
Large diffs are not rendered by default.

chatgpt1/chatgpt1.pdf

5.43 MB
Binary file not shown.

chatgpt1/chatgpt1.tex

Lines changed: 1173 additions & 0 deletions
Large diffs are not rendered by default.

chatgpt1/figures/cosinus-01.tikz

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
\begin{tikzpicture}[scale=1]
2+
3+
\begin{scope}
4+
% Axes
5+
\draw[gray] (0,0) grid ++ (5,4);
6+
\draw[->,>=latex, gray] (0,0)--(5.5,0) node[below,black] {$x$};
7+
\draw[->,>=latex, gray] (0,0)--(0,4.5) node[left,black] {$y$};
8+
\fill[] (0,0) circle (2pt) node[below]{$0$};
9+
\fill[] (1,0) circle (2pt) node[below]{$1$};
10+
\fill[] (0,1) circle (2pt) node[left]{$1$};
11+
12+
\coordinate (X) at (2,3);
13+
\coordinate (Y) at (4,4);
14+
15+
\draw[very thick, blue] (X) -- (Y) node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
16+
\fill[red] (X) circle (2pt) node[black,below left]{$X$};
17+
\fill[red] (Y) circle (2pt) node[black,below right]{$Y$};
18+
19+
\node[align=center] at (2.5,-1.2) {\bf Distance euclidienne \\ $\|X-Y\|$};
20+
21+
\end{scope}
22+
23+
\begin{scope}[xshift=9cm]
24+
% Axes
25+
\draw[gray] (0,0) grid ++ (5,4);
26+
\draw[->,>=latex, gray] (0,0)--(5.5,0) node[below,black] {$x$};
27+
\draw[->,>=latex, gray] (0,0)--(0,4.5) node[left,black] {$y$};
28+
\fill[] (0,0) circle (2pt) node[below]{$0$};
29+
\fill[] (1,0) circle (2pt) node[below]{$1$};
30+
\fill[] (0,1) circle (2pt) node[left]{$1$};
31+
32+
\coordinate (X) at (2,3);
33+
\coordinate (Y) at (4,4);
34+
35+
\draw[->,>=latex,very thick, red] (0,0) -- (X) node[black,above left,scale=0.8]{$X$};
36+
\draw[->,>=latex,very thick, red] (0,0) -- (Y) node[black,below right,scale=0.8]{$Y$};
37+
38+
\draw[blue,very thick,double] ({atan(3/2)}:3) arc ({atan(3/2)}:{atan(4/4)}:3) node[midway,above right]{$\theta$};
39+
40+
%node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
41+
42+
43+
\node[align=center] at (2.5,-1.2) {\bf Similarité cosinus \\ $\cos(\theta)$};
44+
45+
\end{scope}
46+
47+
\end{tikzpicture}

chatgpt1/figures/cosinus-02.tikz

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
\begin{tikzpicture}[scale=1]
2+
3+
\begin{scope}
4+
% Axes
5+
% \draw[gray] (0,0) grid ++ (5,4);
6+
\draw[->,>=latex, gray] (0,0)--(5.5,0); % node[below,black] {$x$};
7+
\draw[->,>=latex, gray] (0,0)--(0,4.5); % node[left,black] {$y$};
8+
% \fill[] (0,0) circle (2pt) node[below]{$0$};
9+
% \fill[] (1,0) circle (2pt) node[below]{$1$};
10+
% \fill[] (0,1) circle (2pt) node[left]{$1$};
11+
12+
\coordinate (X) at (1,3);
13+
\coordinate (Y) at (4,2);
14+
15+
\draw[very thick, blue] (X) -- (Y) node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
16+
\fill[red] (X) circle (2pt) node[black,below left]{$Y$};
17+
\fill[red] (Y) circle (2pt) node[black,below right]{$X$};
18+
19+
\node[align=center] at (2.5,-1.2) {\bf Distance euclidienne \\ $\|X-Y\|$};
20+
21+
\end{scope}
22+
23+
\begin{scope}[xshift=9cm]
24+
% Axes
25+
% \draw[gray] (0,0) grid ++ (5,4);
26+
\draw[->,>=latex, gray] (0,0)--(5.5,0); % node[below,black] {$x$};
27+
\draw[->,>=latex, gray] (0,0)--(0,4.5); % node[left,black] {$y$};
28+
% \fill[] (0,0) circle (2pt) node[below]{$0$};
29+
% \fill[] (1,0) circle (2pt) node[below]{$1$};
30+
% \fill[] (0,1) circle (2pt) node[left]{$1$};
31+
32+
\coordinate (X) at (1,3);
33+
\coordinate (Y) at (4,2);
34+
35+
\draw[->,>=latex,very thick, red] (0,0) -- (X) node[black,above left,scale=0.8]{$Y$};
36+
\draw[->,>=latex,very thick, red] (0,0) -- (Y) node[black,below right,scale=0.8]{$X$};
37+
38+
\draw[blue,very thick,double] ({atan(2/4)}:2.5) arc ({atan(2/4)}:{atan(3/1)}:2.5) node[midway,above right]{$\theta$};
39+
40+
%node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
41+
42+
43+
\node[align=center] at (2.5,-1.2) {\bf Similarité cosinus \\ $\cos(\theta)$};
44+
45+
\end{scope}
46+
47+
\end{tikzpicture}

chatgpt1/figures/cosinus-03.tikz

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
\begin{tikzpicture}[scale=1]
2+
3+
\begin{scope}[xshift=0cm]
4+
% Axes
5+
% \draw[gray] (0,0) grid ++ (5,4);
6+
\draw[->,>=latex, gray] (-1,0)--(4,0); % node[below,black] {$x$};
7+
\draw[->,>=latex, gray] (0,-1)--(0,4); % node[left,black] {$y$};
8+
% \fill[] (0,0) circle (2pt) node[below]{$0$};
9+
% \fill[] (1,0) circle (2pt) node[below]{$1$};
10+
% \fill[] (0,1) circle (2pt) node[left]{$1$};
11+
12+
\coordinate (X) at (3,2);
13+
\coordinate (Y) at (3,3);
14+
15+
\draw[->,>=latex,very thick, red] (0,0) -- (X) node[black,below right,scale=0.8]{$X$};
16+
\draw[->,>=latex,very thick, red] (0,0) -- (Y) node[black,above,scale=0.8]{$Y$};
17+
18+
\draw[blue,very thick,double] ({atan(3/3)}:2.5) arc ({atan(3/3)}:{atan(2/3)}:2.5) node[midway,above right]{$\theta$};
19+
20+
%node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
21+
22+
23+
\node[align=center] at (2,-1.2) {\bf $\cos(\theta) \simeq 1$};
24+
25+
\end{scope}
26+
27+
28+
\begin{scope}[xshift=9cm]
29+
% Axes
30+
% \draw[gray] (0,0) grid ++ (5,4);
31+
\draw[->,>=latex, gray] (-2.5,0)--(4,0); % node[below,black] {$x$};
32+
\draw[->,>=latex, gray] (0,-1)--(0,4); % node[left,black] {$y$};
33+
% \fill[] (0,0) circle (2pt) node[below]{$0$};
34+
% \fill[] (1,0) circle (2pt) node[below]{$1$};
35+
% \fill[] (0,1) circle (2pt) node[left]{$1$};
36+
37+
\coordinate (X) at (3,1);
38+
\coordinate (Y) at (-2,-1);
39+
40+
\draw[->,>=latex,very thick, red] (0,0) -- (X) node[black,above,scale=0.8]{$X$};
41+
\draw[->,>=latex,very thick, red] (0,0) -- (Y) node[black,below,scale=0.8]{$Y$};
42+
43+
\draw[blue,very thick,double] ({atan(1/3)}:1) arc ({atan(1/3)}:{180+atan(1/2)}:1) node[midway,above]{$\theta$};
44+
45+
%node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
46+
47+
48+
\node[align=center] at (1.5,-1.2) {\bf $\cos(\theta) \simeq -1$};
49+
50+
\end{scope}
51+
52+
\begin{scope}[xshift=16cm]
53+
% Axes
54+
% \draw[gray] (0,0) grid ++ (5,4);
55+
\draw[->,>=latex, gray] (-1,0)--(4,0); % node[below,black] {$x$};
56+
\draw[->,>=latex, gray] (0,-1)--(0,4); % node[left,black] {$y$};
57+
% \fill[] (0,0) circle (2pt) node[below]{$0$};
58+
% \fill[] (1,0) circle (2pt) node[below]{$1$};
59+
% \fill[] (0,1) circle (2pt) node[left]{$1$};
60+
61+
\coordinate (X) at (3,0.5);
62+
\coordinate (Y) at (-1,3);
63+
64+
\draw[->,>=latex,very thick, red] (0,0) -- (X) node[black,above right,scale=0.8]{$X$};
65+
\draw[->,>=latex,very thick, red] (0,0) -- (Y) node[black,above,scale=0.8]{$Y$};
66+
67+
\draw[blue,very thick,double] ({atan(0.5/3)}:2.5) arc ({atan(0.5/3)}:{180-atan(3/1)}:2.5) node[midway,above right]{$\theta$};
68+
69+
%node[midway,sloped,above,scale=0.7] {$\|X-Y\|$};
70+
71+
72+
\node[align=center] at (2,-1.2) {\bf $\cos(\theta) \simeq 0$};
73+
74+
\end{scope}
75+
\end{tikzpicture}

chatgpt1/figures/cosinus-04.tikz

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
\begin{tikzpicture}[scale=1]
2+
3+
4+
% Axes
5+
% \draw[gray] (0,0) grid ++ (5,4);
6+
\draw[->,>=latex, gray] (-1,0)--(5,0); % node[below,black] {$x$};
7+
\draw[->,>=latex, gray] (0,-1)--(0,5); % node[left,black] {$y$};
8+
% \fill[] (0,0) circle (2pt) node[below]{$0$};
9+
% \fill[] (1,0) circle (2pt) node[below]{$1$};
10+
% \fill[] (0,1) circle (2pt) node[left]{$1$};
11+
12+
\coordinate (X) at (20:5);
13+
\coordinate (Y) at (60:5);
14+
15+
\draw[->,>=latex,line width = 6pt, red!20] (0,0) -- (X);
16+
\draw[->,>=latex,line width = 6pt, blue!20] (0,0) -- (Y);
17+
18+
\fill[red] (20:4) circle (2pt) node[below, align=center, scale=0.8] {{\bf chat} \\ {\small très confiant}};
19+
\fill[red] (20:2.5) circle (2pt) node[below, align=center, scale=0.8] {{\bf chat} \\ \small confiant};
20+
\fill[red] (20:1) circle (2pt) node[below, align=center, scale=0.8] {{\bf chat} \\ \small peu confiant};
21+
22+
\fill[blue] (60:4) circle (2pt) node[above left, align=center, scale=0.8] {{\bf chien} \\ \small très confiant};
23+
\fill[blue] (60:2.5) circle (2pt) node[above left, align=center, scale=0.8] {{\bf chien} \\ \small confiant};
24+
\fill[blue] (60:1) circle (2pt) node[left, align=center, scale=0.8] {{\bf chien} \\ \small peu confiant};
25+
26+
27+
\end{tikzpicture}

chatgpt1/figures/cube-01.tikz

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
\begin{tikzpicture}[scale=1, cube/.style={very thick,black}]
2+
3+
\draw[cube] (0,0) -- (0,2) -- (2,2) -- (2,0) -- cycle;
4+
5+
\node at (1,-0.5) {\bf Carré};
6+
\end{tikzpicture}

chatgpt1/figures/cube-02.tikz

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
\begin{tikzpicture}
2+
[scale=1, cube/.style={very thick,black},
3+
grid/.style={very thin,gray},
4+
axis/.style={->,blue,thick}]
5+
6+
%draw a grid in the x-y plane
7+
% \foreach \x in {-0.5,0,...,2.5}
8+
% \foreach \y in {-0.5,0,...,2.5}
9+
% {
10+
% \draw[grid] (\x,-0.5) -- (\x,2.5);
11+
% \draw[grid] (-0.5,\y) -- (2.5,\y);
12+
% }
13+
14+
%draw the axes
15+
% \draw[axis] (0,0,0) -- (3,0,0) node[anchor=west]{$x$};
16+
% \draw[axis] (0,0,0) -- (0,3,0) node[anchor=west]{$y$};
17+
% \draw[axis] (0,0,0) -- (0,0,3) node[anchor=west]{$z$};
18+
19+
%draw the top and bottom of the cube
20+
\draw[cube] (0,0,0) -- (0,2,0) -- (2,2,0) -- (2,0,0) -- cycle;
21+
\draw[cube] (0,0,2) -- (0,2,2) -- (2,2,2) -- (2,0,2) -- cycle;
22+
23+
%draw the edges of the cube
24+
\draw[cube] (0,0,0) -- (0,0,2);
25+
\draw[cube] (0,2,0) -- (0,2,2);
26+
\draw[cube] (2,0,0) -- (2,0,2);
27+
\draw[cube] (2,2,0) -- (2,2,2);
28+
29+
30+
\node at (0.5,-1.5) {\bf Cube};
31+
32+
\end{tikzpicture}

chatgpt1/figures/cube-03.tikz

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
% https://tex.stackexchange.com/questions/598573/
2+
\begin{tikzpicture}[scale=0.7]
3+
4+
5+
\begin{scope}[thick,
6+
every node/.style={circle, draw, fill, minimum size=5pt, inner sep=0pt, font=\tiny}]
7+
\pgfsetxvec{\pgfpoint{0.9cm}{0.0cm}}
8+
\pgfsetyvec{\pgfpoint{0.0cm}{0.9cm}}
9+
10+
\foreach \point / \id / \angle in {
11+
% outer cube
12+
(0,0)/0001/270,
13+
(0,5)/0011/90,
14+
(5,0)/1001/270,
15+
(5,5)/1011/90,
16+
(2,2)/0101/180,
17+
(2,7)/0111/90,
18+
(7,2)/1101/270,
19+
(7,7)/1111/90,
20+
% inner cube
21+
(2.5,1.5)/0000/270,
22+
(2.5,3.5)/0010/90,
23+
(4.5,1.5)/1000/250,
24+
(4.5,3.5)/1010/120,
25+
(3.5,2.5)/0100/170,
26+
(3.5,4.5)/0110/180,
27+
(5.5,2.5)/1100/10,
28+
(5.5,4.5)/1110/0}
29+
{
30+
\node (\id) at \point [label=\angle:\id] {};
31+
}
32+
33+
% Here you have some specific nodes coloured in blue.
34+
35+
\foreach \id in {0011, 0101, 1011, 1101}
36+
{
37+
%\node[blue] at (\id){};
38+
}
39+
40+
% And here some other nodes couloured in red
41+
42+
\foreach \id in {0001, 0100, 1001, 1110}
43+
{
44+
%\node[red] at (\id){};
45+
}
46+
47+
\path
48+
(0011) edge (1011) edge (0111) edge (0001)
49+
(1001) edge (0001) edge (1101) edge (1011)
50+
(1111) edge (1101) edge (1011) edge (0111)
51+
(0010) edge (1010) edge (0110) edge (0000)
52+
(1000) edge (0000) edge (1100) edge (1010)
53+
(1110) edge (1100) edge (1010) edge (0110);
54+
55+
\path%[dashed]
56+
(0101) edge (1101) edge (0001) edge (0111)
57+
(0100) edge (1100) edge (0000) edge (0110);
58+
59+
\path%[dotted]
60+
(0000) edge (0001)
61+
(0010) edge (0011)
62+
(0100) edge (0101)
63+
(0110) edge (0111)
64+
(1000) edge (1001)
65+
(1010) edge (1011)
66+
(1100) edge (1101)
67+
(1110) edge (1111);
68+
\end{scope}
69+
70+
every node/.style={}
71+
\node at (3,-1.5) {\bf Hypercube};
72+
73+
\end{tikzpicture}

0 commit comments

Comments
 (0)