2020-2021/Complementaire/03_Logarithme/2E_table_log.tex
Bertrand Benjamin c32367380b
All checks were successful
continuous-integration/drone/push Build is passing
Feat: 2E pour les maths complémentaires
2021-04-27 17:41:29 +02:00

52 lines
908 B
TeX

\documentclass[a5paper 10pt]{article}
\usepackage{myXsim}
\usepackage{fp}
\usepackage{ifthen}
\setlength\parindent{0pt}
\author{Benjamin Bertrand}
\title{Logarithme - Cours}
\date{avril 2021}
\newcounter{mycount}
\newcommand\tablelog{%
\setcounter{mycount}{0}
\begin{multicols}{6}
\whiledo{\value{mycount}<310}
{
\stepcounter{mycount}%
\stepcounter{mycount}%
\makebox[4em]{\themycount}% steps the counter and typesets the value of t
\FPln{\natlogoft}{\themycount}
\FPeval{\res}{round(\natlogoft, 3)}\res\\
}% calculates Ln(t) and typsets it
\end{multicols}
}
\begin{document}
% the counter for the loop
% the command that stores logarithms
\begin{center}
\textbf{Table du log en base $e$}
\end{center}
\tablelog
\vfill
\begin{center}
\textbf{Table du log en base $e$}
\end{center}
\tablelog
% the counter for the loop
\end{document}