<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\newpage
\section{Global Variables and constants} % (fold)
\label{sec:global_variables}

This module defines default values and mathematical constants used for precision control and symbolic computations in \tkzNamePack{tkz-elements}.

\subsection{Global Variables} % (fold)
\label{sub:tkz_settings_variables}

\begin{center}
  \bgroup
  \catcode`_=12
  \small
  \captionof{table}{Default settings and constants.}\label{tab:tkz_settings}
  \begin{tabular}{ll}
    \toprule
    \textbf{Variable} &amp; \textbf{Description} \\
    \midrule
    \tkzSysVar{tkz.nb\_dec}  &amp; Number of decimals used for formatting (default: 10) \\
     \tkzSysVar{tkz.epsilon}  &amp; Tolerance used for floating-point comparisons ($10^{-\texttt{tkz.nb\_dec}}$) \\
     \tkzSysVar{tkz.dc}        &amp; Number of decimals shown in output (default: 2) \\
          \midrule
     \textbf{Constant} &amp; \textbf{Description} \\
     \midrule
     
     \tkzConst{tkz.phi}        &amp; Golden ratio $\varphi = \dfrac{1 + \sqrt{5}}{2}$ \\
     \tkzConst{tkz.invphi}     &amp; Inverse golden ratio $1/\varphi = \dfrac{\sqrt{5} - 1}{2}$ \\
     \tkzConst{tkz.sqrtphi}    &amp; Square root of the golden ratio $\sqrt{\varphi}$ \\
    \bottomrule
  \end{tabular}
  \egroup
\end{center}


\subsection{Functions} % (fold)
\label{sub:tkz_settings_functions}

\begin{center}
  \bgroup
  \catcode`\_=12
  \small
  \captionof{table}{Functions related to settings.}\label{tab:tkz_settings_functions}
  \begin{tabular}{ll}
    \toprule
    \textbf{Function} &amp; \textbf{Reference} \\
    \midrule
    \tkzFct{tkz}{tkz.reset\_defaults()}   &amp; Section~\ref{ssub:tkz_reset_defaults} \\
    \tkzFct{tkz}{tkz.set\_nb\_dec(n)}      &amp; Section~\ref{ssub:tkz_set_nb_dec} \\
    \bottomrule
  \end{tabular}
  \egroup
\end{center}

\subsubsection{Function \tkzFct{tkz-elements}{reset\_defaults()}} % (fold)
\label{ssub:tkz_reset_defaults}

Restores default values for numerical precision and formatting:
\begin{itemize}
  \item \code{tkz.nb\_dec = 10}
  \item \code{tkz.epsilon = 1e-10}
  \item \code{tkz.dc = 2}
\end{itemize}

\subsubsection{Function \tkzFct{tkz}{tkz.set\_nb\_dec(n)}} % (fold)
\label{ssub:tkz_set_nb_dec}


Sets the number of decimals used in floating-point comparisons and updates the tolerance accordingly:
\begin{itemize}
  \item \code{tkz.nb\_dec = $n$}
  \item \code{tkz.epsilon = $10^{-n}$}
\end{itemize}
%
% \noindent
% \textbf{Effect:} Updates both \code{tkz\\\_nb\\\_dec} and \code{tkz\\\_epsilon} (which becomes $10^{-n}$).
% section constants (end)</pre></body></html>