Skip to content

Commit 816058e

Browse files
authoredApr 1, 2024··
Documentation: argument and return types of math functions (#1629)
* argument and return types of math functions * argument and return types of math functions * argument and return types of math functions
1 parent 8aa08d5 commit 816058e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎docs/specs/source_math.tex

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ \subsection*{MATH Library}
1313
\item \verb#math_sqrt#\texttt{(n)}: \textit{primitive}, returns the square root of the \emph{number} \texttt{n}.
1414
\end{itemize}
1515
\end{itemize}
16-
All functions can be assumed to run in $O(1)$ time and are considered
17-
\textit{primitive}.
16+
All math functions can be assumed to run in $O(1)$ time and are considered
17+
\textit{primitive}. All math functions expect numbers as arguments and return numbers.
18+
We don't specify the behavior of a math function when some arguments are
19+
not numbers.

0 commit comments

Comments
 (0)
Please sign in to comment.