📄 divider.tex
字号:
% This is part of the TFTB Reference Manual.% Copyright (C) 1996 CNRS (France) and Rice University (US).% See the file refguide.tex for copying conditions.
\markright{divider}
\hspace*{-1.6cm}{\Large \bf divider}
\vspace*{-.4cm}
\hspace*{-1.6cm}\rule[0in]{16.5cm}{.02cm}
\vspace*{.2cm}
{\bf \large \fontfamily{cmss}\selectfont Purpose}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
Find dividers of an integer, closest from the square root of the integer.
\end{minipage}
\vspace*{.5cm}
{\bf \large \fontfamily{cmss}\selectfont Synopsis}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
\begin{verbatim}
[N,M] = divider(N1)
\end{verbatim}
\end{minipage}
\vspace*{.5cm}
{\bf \large \fontfamily{cmss}\selectfont Description}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
{\ty divider} find two integers {\ty N} and {\ty M} such that {\ty
M*N=N1}, with {\ty M} and {\ty N} as close as possible from {\ty
sqrt(N1)}.\\
\end{minipage}
\vspace*{.5cm}
{\bf \large \fontfamily{cmss}\selectfont Examples}
\begin{verbatim}
N1=256; [N,M]=divider(N1); [N,M]
ans =
16 16
N1=258; [N,M]=divider(N1); [N,M]
ans =
6 43
\end{verbatim}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -