summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/luamaths/luamaths.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/latex/luamaths/luamaths.tex')
-rw-r--r--macros/luatex/latex/luamaths/luamaths.tex18
1 files changed, 16 insertions, 2 deletions
diff --git a/macros/luatex/latex/luamaths/luamaths.tex b/macros/luatex/latex/luamaths/luamaths.tex
index 8e501abf14..3cb499b88c 100644
--- a/macros/luatex/latex/luamaths/luamaths.tex
+++ b/macros/luatex/latex/luamaths/luamaths.tex
@@ -42,7 +42,7 @@ The \verb|luamaths| package is released under the LaTeX Project Public License v
\section{Commands in the luamaths package}
Table \ref{tbl:opluamaths} lists operations in the \verb|luamaths| package.
\begin{center}
-\begin{longtable}{llm{6cm}}
+\begin{longtable}{llm{6.5cm}}
\toprule
\multicolumn{1}{c}{\textcolor{blue}{Function}} & \multicolumn{1}{l}{\textcolor{blue}{Command Format}} & \multicolumn{1}{c}{\textcolor{blue}{Description}} \\
\toprule
@@ -161,7 +161,7 @@ Table \ref{tbl:opluamaths} lists operations in the \verb|luamaths| package.
\end{lstlisting} &
\begin{lstlisting}
\mathRound{number}{digits}
-\end{lstlisting} & It rounds off a real number to a specified number of digits. \\
+\end{lstlisting} & It rounds off a real number to a specified number of decimal places. \\
\midrule
\begin{lstlisting}
\mathSin
@@ -183,6 +183,15 @@ Table \ref{tbl:opluamaths} lists operations in the \verb|luamaths| package.
\begin{lstlisting}
\mathTan{number}
\end{lstlisting} & Gives the tangent of a real number. Here the number is in radians.\\
+\midrule
+\begin{lstlisting}
+\complexRound
+\end{lstlisting} &
+\begin{lstlisting}
+\complexRound{cx_num}{digits}
+\end{lstlisting} & It rounds off a complex number to a specified number of decimal places.\\
+
+
\bottomrule \\
\caption{Operations in the luamaths package}
\label{tbl:opluamaths}
@@ -319,6 +328,11 @@ Table \ref{tbl:illluamaths} illustrates operations in the \verb|luamaths| packag
\begin{lstlisting}
\mathRound{\mathOp{9+\mathSin{4}}}{6}
\end{lstlisting} & \(\mathRound{\mathOp{9+\mathSin{4}}}{6}\)\\
+\midrule
+
+\begin{lstlisting}
+\complexRound{lcomplex(\mathPi,6)}{4}
+\end{lstlisting} & \(\complexRound{lcomplex(\mathPi,6)}{4}\)\\
\bottomrule \\
\caption{Illustrations of commands in the luamaths package}
\label{tbl:illluamaths}