Skip to content

Commit

Permalink
Documentation: argument and return types of math functions (#1629)
Browse files Browse the repository at this point in the history
* argument and return types of math functions

* argument and return types of math functions

* argument and return types of math functions
  • Loading branch information
martin-henz authored Apr 1, 2024
1 parent 8aa08d5 commit 816058e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/specs/source_math.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ \subsection*{MATH Library}
\item \verb#math_sqrt#\texttt{(n)}: \textit{primitive}, returns the square root of the \emph{number} \texttt{n}.
\end{itemize}
\end{itemize}
All functions can be assumed to run in $O(1)$ time and are considered
\textit{primitive}.
All math functions can be assumed to run in $O(1)$ time and are considered
\textit{primitive}. All math functions expect numbers as arguments and return numbers.
We don't specify the behavior of a math function when some arguments are
not numbers.

0 comments on commit 816058e

Please sign in to comment.