-
Notifications
You must be signed in to change notification settings - Fork 0
/
report_template.tex
78 lines (59 loc) · 1.7 KB
/
report_template.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{array}
\usepackage{caption}
\usepackage{subcaption}
\pagenumbering{gobble}
\title{\VAR{algo_name}}
\author{\VAR{name}}
\begin{document}
\maketitle
\section{Error results}
\begin{center}
$x \in [\VAR{a}, \VAR{b}]$ with h = \BLOCK{if step == -1} nextafterf \BLOCK{else} \VAR{step} \BLOCK{endif}
\begin{tabular}{ | m{4cm} | c | c | c |}
\hline
Error name & Argument & Error & Bits \\
\hline
\BLOCK{if rel_graph is defined}
Min Relative Error & \VAR{x_min_rel} & \VAR{min_rel} & \VAR{min_rel | log2} \\
\hline
Max Relative Error & \VAR{x_max_rel} & \VAR{max_rel} & \VAR{max_rel | log2} \\
\hline
\BLOCK{endif}
\BLOCK{if abs_graph is defined}
Min Absolute Error & \VAR{x_min_abs} & \VAR{min_abs} & \VAR{min_abs | log2} \\
\hline
Max Absolute Error & \VAR{x_max_abs} & \VAR{max_abs} & \VAR{max_abs | log2} \\
\hline
\BLOCK{endif}
\end{tabular}
\end{center}
\section{Time}
\BLOCK{if rel_graph is defined or abs_graph is defined}
Algorithm takes \VAR{algo_time} seconds.
\BLOCK{endif}
\section{Graphs}
\BLOCK{if rel_graph is defined and abs_graph is defined}
\begin{figure}[h!]
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=6cm, height=4.5cm]{relative_error.png}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=6cm, height=4.5cm]{absolute_error.png}
\end{subfigure}
\end{figure}
\BLOCK{elif rel_graph is defined}
\begin{center}
\includegraphics[scale=0.9]{\VAR{rel_graph}}
\end{center}
\BLOCK{elif abs_graph is defined}
\begin{center}
\includegraphics[scale=0.9]{\VAR{abs_graph}}
\end{center}
\BLOCK{endif}
\end{document}