Added files
This commit is contained in:
		
							
								
								
									
										56
									
								
								contents/computer_science.tex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								contents/computer_science.tex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,56 @@
 | 
			
		||||
\langchapter{Science informatique}{Computer Science}
 | 
			
		||||
%TODO Complete chapter
 | 
			
		||||
 | 
			
		||||
\langsection{Algorithmes}{Algorithms}
 | 
			
		||||
%TODO Complete section
 | 
			
		||||
 | 
			
		||||
\index{Algorithms}
 | 
			
		||||
 | 
			
		||||
\begin{algorithm}[H]
 | 
			
		||||
\KwIn{This is some input}
 | 
			
		||||
\KwOut{This is some output}
 | 
			
		||||
\SetAlgoLined
 | 
			
		||||
\SetNoFillComment
 | 
			
		||||
\tcc{This is a comment}
 | 
			
		||||
\vspace{3mm}
 | 
			
		||||
some code here\;
 | 
			
		||||
$x \leftarrow 0$\;
 | 
			
		||||
$y \leftarrow 0$\;
 | 
			
		||||
\uIf{$ x > 5$} {
 | 
			
		||||
	x is greater than 5 \tcp*{This is also a comment}
 | 
			
		||||
}
 | 
			
		||||
\Else {
 | 
			
		||||
	x is less than or equal to 5\;
 | 
			
		||||
}
 | 
			
		||||
\ForEach{y in 0..5} {
 | 
			
		||||
	$y \leftarrow y + 1$\;
 | 
			
		||||
}
 | 
			
		||||
\For{$y$ in $0..5$} {
 | 
			
		||||
	$y \leftarrow y - 1$\;
 | 
			
		||||
}
 | 
			
		||||
\While{$x > 5$} {
 | 
			
		||||
	$x \leftarrow x - 1$\;
 | 
			
		||||
}
 | 
			
		||||
\Return Return something here\;
 | 
			
		||||
\caption{what}
 | 
			
		||||
\end{algorithm}
 | 
			
		||||
 | 
			
		||||
\langsection{Exemple en Python}{Python example}
 | 
			
		||||
\begin{lstlisting}[language=Python]
 | 
			
		||||
def fnc(a, b):
 | 
			
		||||
	return a + b
 | 
			
		||||
\end{lstlisting}
 | 
			
		||||
 | 
			
		||||
\langsection{Exemple en C}{C example}
 | 
			
		||||
\begin{lstlisting}[language=C]
 | 
			
		||||
int fnc(int a, int b){
 | 
			
		||||
	return a + b;
 | 
			
		||||
}
 | 
			
		||||
\end{lstlisting}
 | 
			
		||||
 | 
			
		||||
\langsection{Intelligence artificiel}{Artificial Intelligence}
 | 
			
		||||
%TODO Complete section
 | 
			
		||||
 | 
			
		||||
\langsubsection{Thèse orthogonal (et stupidité)}{Orthogonal Thesis (and stupidity)}
 | 
			
		||||
% TODO Complete subsection
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user