Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp_rsa_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flavio.morrone
tp_rsa_python
Commits
d60af533
Commit
d60af533
authored
2 years ago
by
adrian.spycher
Browse files
Options
Downloads
Patches
Plain Diff
add LaTeX file
parent
2d49b97a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+15
-0
15 additions, 0 deletions
.gitignore
figures/cryptography.jpg
+0
-0
0 additions, 0 deletions
figures/cryptography.jpg
main.tex
+378
-0
378 additions, 0 deletions
main.tex
with
393 additions
and
0 deletions
.gitignore
0 → 100644
+
15
−
0
View file @
d60af533
# --- casual ---
.vscode
# --- LaTeX ---
main.aux
main.fdb_latexmk
main.fls
main.lof
main.log
main.lot
main.log
main.out
main.pdf
main.synctex.gz
main.toc
\ No newline at end of file
This diff is collapsed.
Click to expand it.
figures/cryptography.jpg
0 → 100644
+
0
−
0
View file @
d60af533
200 KiB
This diff is collapsed.
Click to expand it.
main.tex
0 → 100644
+
378
−
0
View file @
d60af533
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Rapport de physique
% Document LaTeX
% Version 1.0 (22.09.22)
%
% Ceci est un rapport sur un TP de physique, ou nous devions
% simuler un systeme planetaire.
% Par : Adrian Spycher, Costantino Volta
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PAQUETS ET AUTRES CONFIGURATIONS DU DOCUMENTS
%----------------------------------------------------------------------------------------
% --- document ---
\documentclass
[11pt]
{
report
}
% Style du document et taille de la font
\usepackage
[T1]
{
fontenc
}
% Définit font encoding
\usepackage
[utf8]
{
inputenc
}
% Définit character encoding
\usepackage
[french]
{
babel
}
% Définit la langue du document
\usepackage
{
hyperref
}
% Ajoute des liens hyperref aux tables
\usepackage
[
% Change les dimensions du document
margin=1.1in,
tmargin=1.25in,
bmargin=1.25in]
{
geometry
}
% --- texte ---
\usepackage
[document]
{
ragged2e
}
% Gère l'allignement du texte
\usepackage
{
setspace
}
% Gère les interlignes
\usepackage
{
afterpage
}
% Gère les sauts de page
\usepackage
{
pifont
}
% Ajoute des fonts (cmark, xmark)
\usepackage
{
titlesec
}
% Format les titres et sections
\usepackage
[titles]
{
tocloft
}
% Format les toc / lof / lot
\usepackage
{
fancyhdr
}
% Format les header et footer
\usepackage
{
textgreek
}
% Ajoute l'alphabet grec
\usepackage
{
enumitem
}
% Ajoute des fonctionalitées au enum
% --- graphique ---
\usepackage
{
graphicx
}
% Gérer les images
\usepackage
{
subcaption
}
% Permet de gérer des sous-images
\usepackage
{
xcolor
}
% Ajoute une palette de couleur
\usepackage
{
booktabs
}
% Améliorer le rendu des tables
\usepackage
{
hhline
}
% Gère les bordures des tableaux
\usepackage
{
colortbl
}
% Ajoute les couleurs pour les tableaux
\usepackage
{
xfrac
}
% Fait de plus beau tableau
\usepackage
{
multirow
}
% Pour faire du multirow
\usepackage
{
multicol
}
% Pour faire du multicol
% --- diagramme ---
\usepackage
{
algorithm
}
% Pour créer des algorithm
\usepackage
{
algpseudocode
}
% Pour créer des pseudocode
% --- math ---
\usepackage
{
amsmath, amssymb, amsthm
}
% Utilise les fonctionalitées mathématique
\usepackage
{
mathdots
}
% Rends conforme les math et la font
\usepackage
{
bm
}
% Ajouts des signes mathématique en bold
\usepackage
{
listofitems
}
% Implémente les listes
%----------------------------------------------------------------------------------------
% INFORMATIONS DU DOCUMENT ET COMMANDE
%----------------------------------------------------------------------------------------
% --- Variables ---
\def
\mytitle
{
blablabla
}
\def
\mysubtitle
{
blablabla
}
\def
\myauthor
{
Adrian
\textsc
{
Spycher
}
, Flavio
\textsc
{
Morrone
}
\&
Jad
\textsc
{
Tayan
}}
\def
\myuniversity
{
\href
{
https://www.hesge.ch/hepia/
}{
HEPIA
}}
\def
\mydepartment
{
\href
{
https://www.hesge.ch/hepia/bachelor/informatique-et-systemes-communication
}{
Informatique et systemes communication
}}
\def
\myteacher
{
Niklaus
\textsc
{
Eggenberg
}}
\def
\mymodule
{
Sciences en ISC
}
\def
\mycourse
{
Mathématiques appliquées à l'ingénierie
}
\def
\mycoursecode
{
ISC
\_
122
}
% --- Format des sections et paramètres ---
% spécifié le repertoire des images
\graphicspath
{
{
./figures/
}
}
% header & footer
\pagestyle
{
fancy
}
\lhead
{}
\rhead
{
\textsc
{
\leftmark
}}
\setlength
{
\parindent
}{
0mm
}
% no indent paragraph
% interligne
\onehalfspacing
% pour ajouter des points au toc/tof/tot
\renewcommand
{
\cftchapdotsep
}{
\cftdotsep
}
% chapter design
\titleformat
{
\chapter
}
[display]
{
\Large
\bfseries
}
{
\chaptername
\space
\thechapter
}
{
5mm
}
{}
\titlespacing*
{
\chapter
}{
0mm
}{
7mm
}{
10mm
}
% création des notes
\theoremstyle
{
remark
}
\newtheorem*
{
remark
}{
Notes
}
% change default symbole pour les listes
% \setlist[itemize]{label=\textbullet}
% --- Fonctions ---
% an empty page
\newcommand\myemptypage
{
\null
\thispagestyle
{
empty
}
\addtocounter
{
page
}{
-1
}
\newpage
}
% espacement entre les lignes/colonnes d'un tableau
\newcommand
{
\rowsep
}
[1]
{
\renewcommand
{
\arraystretch
}{
#1
}}
% 1.3, def : 1
\newcommand
{
\colsep
}
[1]
{
\setlength
{
\tabcolsep
}{
#1
}}
% def : 6pt
% tableau header
\newcommand
{
\thead
}
[1]
{
\multicolumn
{
1
}{
c
}{
\bfseries
#1
}}
% prog sign eq et not eq
\newcommand
{
\myprogeq
}{
=
\!
=
}
\newcommand
{
\myprogneq
}{
\neq
}
%? (=\!\!\!\neq\!\!\!=) faire plus long ?
\newcommand
{
\myprogand
}{
\text
{
\footnotesize
\&\&
}}
\newcommand
{
\myprogor
}{
\text
{
\footnotesize
||
}}
\newcommand
{
\myprogmod
}{
\text
{
\textsf
{
\footnotesize
\%
}}}
\newcommand
{
\myprogpp
}{
+
\!\joinrel\!
+
}
\newcommand
{
\myprogmm
}{
-
\!\joinrel\!
-
}
% algorithme indent
\algdef
{
SE
}
[SUBALG]
{
Indent
}{
EndIndent
}{}{
\algorithmicend\
}
%
\algtext*
{
Indent
}
\algtext*
{
EndIndent
}
\begin{document}
\pagenumbering
{
roman
}
%----------------------------------------------------------------------------------------
% PAGE DE TITRE
%----------------------------------------------------------------------------------------
\begin{titlepage}
\begin{center}
\vspace*
{
1cm
}
{
\huge
\textbf
{
\mytitle
}}
\vspace
{
0.5cm
}
\mysubtitle
\vspace
{
1.5cm
}
\myauthor
\vfill
\includegraphics
[width=0.5\textwidth]
{
cryptography.jpg
}
\vfill
\myuniversity
\\
\mydepartment
\\
\myteacher
\\
\mymodule
\\
\mycoursecode
$
\
-
$
\mycourse
\\
\today
\end{center}
\end{titlepage}
\newpage
\pagenumbering
{
arabic
}
% Commencer la numérotation numérique des pages (1,2,3...)
%----------------------------------------------------------------------------------------
% LISTES DES PAGES CONTENU/FIGURES/TABLES
%----------------------------------------------------------------------------------------
\tableofcontents
\addcontentsline
{
toc
}{
chapter
}{
Table des matières
}
\newpage
\renewcommand
{
\listfigurename
}{
Liste des figures
}
% Sinon : "Table de figures"
\listoffigures
\addcontentsline
{
toc
}{
chapter
}{
Liste des figures
}
\newpage
%----------------------------------------------------------------------------------------
% INTRODUCTION
%----------------------------------------------------------------------------------------
\chapter
{
Introduction
}
\label
{
cha:Introduction
}
% --- Section 1.1 : Contexte du travail ---
\section
{
Contexte du travail
}
\label
{
sec:Contexte du travail
}
blablabla
% --- Section 1.2 : Plan ---
\section
{
Plan
}
\label
{
sec:Plan
}
blablabla
\vspace*
{
0.25cm
}
\begin{remark}
blablabla
\href
{
https://malaspinas.academy/phys/planets/enonce.html
}{
malaspinas.academy
}
\end{remark}
\newpage
%----------------------------------------------------------------------------------------
% CHAPTER NAME
%----------------------------------------------------------------------------------------
\chapter
{
Chapter name
}
\label
{
cha:Chapter name
}
% --- Section 2.1 : Description du problème ---
\section
{
Description du problème
}
\label
{
sec:Description du problème
}
blablabla
\begin{itemize}
\item
bla
\item
bla
\item
bla
\end{itemize}
% --- Section 2.2 : Bagage mathématique ---
\section
{
Bagage mathématique
}
\label
{
sec:Bagage mathématique
}
blabla
% - Sub-section 2.2.1 : Les lois de Newton -
\subsection*
{
Les lois de Newton
}
\label
{
sub:Les lois de Newton
}
blabla
% --- Section 2.3 : Structure du code ---
\section
{
Structure du code
}
\label
{
sec:Structure du code
}
blablabla
\begin{figure}
[h]
\centering
\begin{subfigure}
{
.6
\linewidth
}
\centering
%\includegraphics[width=.8\textwidth]{struct_planet.png}
\caption
{
Structure planète
}
\end{subfigure}
\vspace*
{
1cm
}
\begin{subfigure}
{
.6
\linewidth
}
\centering
%\includegraphics[width=.8\textwidth]{struct_system.png}
\caption
{
Structure système
}
\end{subfigure}
\caption
{
Les deux principales structures du code
}
\label
{
fig:DeuxPrincipalesStrucutres
}
\end{figure}
\newpage
%----------------------------------------------------------------------------------------
% RÉSULTATS
%----------------------------------------------------------------------------------------
\chapter
{
Résultats
}
\label
{
cha:Résultats
}
blablabla
\begin{figure}
[!h]
\centering
% \includegraphics[width=.41\textwidth]{Fig2_B612_Kry.png}
\caption
{
Capture d'écran de la simulation avec des planètes fictives
}
\label
{
fig:SimulationPlanètesFictives
}
\end{figure}
blablabla
\begin{table}
[h]
\centering
\rowsep
{
1.3
}
\colsep
{
10pt
}
\begin{tabular}
{
lllll
}
\toprule
\thead
{
Planète
}
&
\thead
{
Masse
}
&
\thead
{
Demi-grand axe
}
&
\thead
{
Excentricité
}
&
\thead
{
Périhélie
}
\\
\midrule
Mercure
&
$
3
.
3011
\cdot
10
^{
23
}
$
&
$
5
.
790905
\cdot
10
^{
10
}
$
&
$
2
.
05
\cdot
10
^{
-
1
}
$
&
$
4
.
60012
\cdot
10
^{
10
}
$
\\
Venus
&
$
4
.
8675
\cdot
10
^{
24
}
$
&
$
1
.
082095
\cdot
10
^{
11
}
$
&
$
6
.
78
\cdot
10
^{
-
3
}
$
&
$
1
.
07476
\cdot
10
^{
11
}
$
\\
Terre
&
$
5
.
9736
\cdot
10
^{
24
}
$
&
$
1
.
495978
\cdot
10
^{
11
}
$
&
$
1
.
671
\cdot
10
^{
-
2
}
$
&
$
1
.
47098
\cdot
10
^{
11
}
$
\\
Mars
&
$
6
.
4185
\cdot
10
^{
23
}
$
&
$
2
.
27944
\cdot
10
^{
11
}
$
&
$
9
.
339
\cdot
10
^{
-
2
}
$
&
$
2
.
06655
\cdot
10
^{
11
}
$
\\
Jupiter
&
$
1
.
8986
\cdot
10
^{
27
}
$
&
$
7
.
7834
\cdot
10
^{
11
}
$
&
$
4
.
839
\cdot
10
^{
-
2
}
$
&
$
7
.
4068
\cdot
10
^{
11
}
$
\\
Saturne
&
$
5
.
6846
\cdot
10
^{
26
}
$
&
$
1
.
4267
\cdot
10
^{
12
}
$
&
$
5
.
39
\cdot
10
^{
-
2
}
$
&
$
1
.
3498
\cdot
10
^{
12
}
$
\\
Uranus
&
$
8
.
6810
\cdot
10
^{
25
}
$
&
$
2
.
8707
\cdot
10
^{
12
}
$
&
$
4
.
726
\cdot
10
^{
-
2
}
$
&
$
2
.
735
\cdot
10
^{
12
}
$
\\
Neptune
&
$
1
.
0243
\cdot
10
^{
26
}
$
&
$
4
.
4984
\cdot
10
^{
12
}
$
&
$
8
.
59
\cdot
10
^{
-
3
}
$
&
$
4
.
4598
\cdot
10
^{
12
}
$
\\
B612
&
$
1
.
8986
\cdot
10
^{
20
}
$
&
$
3
.
7834
\cdot
10
^{
11
}
$
&
$
2
.
4195
\cdot
10
^{
-
1
}
$
&
$
3
.
4068
\cdot
10
^{
11
}
$
\\
Krypton
&
$
5
.
6846
\cdot
10
^{
26
}
$
&
$
6
.
4267
\cdot
10
^{
11
}
$
&
$
5
.
39
\cdot
10
^{
-
2
}
$
&
$
6
.
3498
\cdot
10
^{
11
}
$
\\
\bottomrule
\end{tabular}
\caption
{
Paramètres des planètes utilisés
}
\label
{
tab:Paramètres des planètes utilisés
}
\end{table}
blablabla
\[
v
_
p
(
0
)
=
\sqrt
{
\frac
{
G
\cdot
M
\cdot
(
1
+
e
_
p
)
}{
a
_
p
\cdot
(
1
-
e
_
p
)
}}
\cdot
\frac
{
\vec
{
r
}_
p
}{
||
\vec
{
r
}_
p||
}
\]
\newpage
%----------------------------------------------------------------------------------------
% CONCLUSION
%----------------------------------------------------------------------------------------
\chapter
{
Conclusion
}
\label
{
cha:Conclusion
}
blablabla
\newpage
%----------------------------------------------------------------------------------------
\end{document}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment