summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/lualinalg/lualinalg.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/latex/lualinalg/lualinalg.tex')
-rw-r--r--macros/luatex/latex/lualinalg/lualinalg.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/macros/luatex/latex/lualinalg/lualinalg.tex b/macros/luatex/latex/lualinalg/lualinalg.tex
index 10b2d55c34..7c49480d27 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.tex
+++ b/macros/luatex/latex/lualinalg/lualinalg.tex
@@ -1046,7 +1046,7 @@ The package has command \verb|\matrixRREFSteps| to produce step-by-step computat
\renewcommand*{\arraystretch}{1.0}
The command \verb|\matrixGaussJordan| is used to obtain Gauss-Jordan elimination of an augmented matrix.
\begin{lstlisting}
-\def\a{{{1,1,1},{2,-1,-1},{1,-1,1}}}
+\def\a{{{lfrac(1,2),1,1},{2,-1,-1},{1,-1,1}}}
\def\b{{{3},{3},{9}}}
\matrixNew{S}{\a}
\matrixNew{T}{\b}
@@ -1056,11 +1056,12 @@ $$W = \matrixPrint{W}$$
$$U = \matrixPrint{U}$$
\end{lstlisting}
The above code produces the following output.
-\def\a{{{1,1,1},{2,-1,-1},{1,-1,1}}}
+\def\a{{{lfrac(1,2),1,1},{2,-1,-1},{1,-1,1}}}
\def\b{{{3},{3},{9}}}
\matrixNew{S}{\a}
\matrixNew{T}{\b}
\matrixConcatH{W}{S}{T}
+\renewcommand{\arraystretch}{1.5}
\begin{framed}
$$W = \matrixPrint{W}$$
\matrixGaussJordan{U}{S}{T}
@@ -1070,6 +1071,7 @@ The package also has a command \verb|\matrixGaussJordanSteps| to produce step-by
\begin{framed}
\matrixGaussJordanSteps{S}{T}
\end{framed}
+\renewcommand{\arraystretch}{1.0}
\section{Customized usage}\label{customuse}
The commands available in the package can be used for performing further operations on vectors and matrices. The command \verb|\vectorAdd| can be extended to add more than two vectors. The latex document (listing \ref{code:custluavec}) provides some instances of such usage.
\begin{lstlisting}[label={code:custluavec}, caption={Customized usage of the lualinalg package}]
@@ -1179,4 +1181,5 @@ The sum of matrices \(m1,m2 \text{ and } m3 =\begin{bmatrix} 111 & 222 & 333 \
\item The error handling mechanism in the tool is not robust. There are some custom errors included in the package. However the package mostly depends on error handling mechanism of Lua. The error handling can be strengthened in future updates of the package.
\end{itemize}
+
\end{document} \ No newline at end of file