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


\subsection{Global Variables}


  \bgroup
  \catcode`_=12
  \small
  \captionof{table}{Default settings and constants.}\label{tab:tkz_settings}
  \begin{tabular}{ll}
    \toprule
    \textbf{Variable} & \textbf{Description} \\
    \midrule
    \tkzSysVar{tkz.nb\_dec}  & Number of decimals used for formatting (default: 10) \\
     \tkzSysVar{tkz.epsilon}  & Tolerance used for floating-point comparisons ($10^{-\texttt{tkz.nb\_dec}}$) \\
     \tkzSysVar{tkz.dc}        & Number of decimals shown in output (default: 2) \\
          \midrule
     \textbf{Constant} & \textbf{Description} \\
     \midrule

     \tkzConst{tkz.phi}        & Golden ratio $\varphi = \dfrac{1 + \sqrt{5}}{2}$ \\
     \tkzConst{tkz.invphi}     & Inverse golden ratio $1/\varphi = \dfrac{\sqrt{5} - 1}{2}$ \\
     \tkzConst{tkz.sqrtphi}    & Square root of the golden ratio $\sqrt{\varphi}$ \\
     \tkzConst{tkz.pt}        & 254 / 7227 \\
     \tkzConst{tkz.deg}        & math.pi /1 80\\
     \tkzConst{tkz.rad}        & 180 / math.pi \\
    \bottomrule
  \end{tabular}
  \egroup



\subsection{Functions}

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



\subsubsection{Function \tkzFct{tkz-elements}{reset\_defaults()}}
\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)}}
\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}
\endinput