summaryrefslogtreecommitdiff
path: root/macros/luatex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-08-22 03:01:06 +0000
committerNorbert Preining <norbert@preining.info>2023-08-22 03:01:06 +0000
commitcf3e954514eb50bea0335bdc97d6b76f80f5d03e (patch)
tree84960c9724915fd64626f3b8c532a671ea7e87f2 /macros/luatex/latex
parentf4e4c48e897bec27fd8d07ba278c03c6f0c64336 (diff)
CTAN sync 202308220301
Diffstat (limited to 'macros/luatex/latex')
-rw-r--r--macros/luatex/latex/lualinalg/README.txt2
-rw-r--r--macros/luatex/latex/lualinalg/lualinalg.pdfbin270847 -> 268452 bytes
-rw-r--r--macros/luatex/latex/lualinalg/lualinalg.sty14
-rw-r--r--macros/luatex/latex/lualinalg/lualinalg.tex8
-rw-r--r--macros/luatex/latex/luamaths/README.txt2
-rw-r--r--macros/luatex/latex/luamaths/luamaths-fractions.lua4
-rw-r--r--macros/luatex/latex/luamaths/luamaths.pdfbin146025 -> 146010 bytes
-rw-r--r--macros/luatex/latex/luamaths/luamaths.sty4
8 files changed, 13 insertions, 21 deletions
diff --git a/macros/luatex/latex/lualinalg/README.txt b/macros/luatex/latex/lualinalg/README.txt
index 243edf9cca..e63acad671 100644
--- a/macros/luatex/latex/lualinalg/README.txt
+++ b/macros/luatex/latex/lualinalg/README.txt
@@ -1,5 +1,5 @@
# The lualinalg package
-# version 1.6
+# version 1.7
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty@gmail.com
diff --git a/macros/luatex/latex/lualinalg/lualinalg.pdf b/macros/luatex/latex/lualinalg/lualinalg.pdf
index 24f78d5052..30510d2490 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.pdf
+++ b/macros/luatex/latex/lualinalg/lualinalg.pdf
Binary files differ
diff --git a/macros/luatex/latex/lualinalg/lualinalg.sty b/macros/luatex/latex/lualinalg/lualinalg.sty
index 5d3e502a8d..5c62f329fa 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.sty
+++ b/macros/luatex/latex/lualinalg/lualinalg.sty
@@ -1,9 +1,9 @@
% The lualinalg package
% Authors: Chetan Shirore and Ajit Kumar
-% Version 1.6, Date=09-Aug-2023
+% Version 1.7, Date=21-Aug-2023
% Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt.
-\ProvidesPackage{lualinalg}[1.6]
+\ProvidesPackage{lualinalg}[1.7]
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
\RequirePackage{luamaths}
@@ -1132,7 +1132,7 @@ function vector.gs(inptTbl, brckt, dignum)
local str = ""
k = #inptTbl
- if vector.euclidnorm(inptTbl[1]) ~= complex(0.0) then
+ if complex.round(vector.euclidnorm(inptTbl[1])) ~= complex("0.0") then
tbl[1] = vector.mulnum(inptTbl[1], 1 / vector.euclidnorm(inptTbl[1]))
else
tbl[1] = vector.mulnum(inptTbl[1], 1)
@@ -1146,7 +1146,7 @@ function vector.gs(inptTbl, brckt, dignum)
setmetatable(tbl[j], vector_meta)
tbl[i] = vector.sub(tbl[i], vector.mulnum(tbl[j], vector.dot(tbl[i], tbl[j])))
end
- if vector.euclidnorm(tbl[i]) ~= complex(0.0) then
+ if complex.round(vector.euclidnorm(tbl[i])) ~= complex("0.0") then
tbl[i] = vector.mulnum(tbl[i], 1 / vector.euclidnorm(tbl[i]))
end
tbl[i] = vector.mulnum(tbl[i], 1.0)
@@ -1179,7 +1179,7 @@ function vector.gsX(inptTbl, brckt, dignum)
k = #inptTbl
str = str .. "\\ \\newline Take given vectors as $v_1,\\ldots, v_" .. k .. "$ in order."
- if vector.euclidnorm(inptTbl[1]) ~= complex(0.0) then
+ if complex.round(vector.euclidnorm(inptTbl[1])) ~= complex("0.0") then
tbl[1] = vector.mulnum(inptTbl[1], 1.0 / vector.euclidnorm(inptTbl[1]))
else
tbl[1] = vector.mulnum(inptTbl[1], 1.0)
@@ -1188,7 +1188,7 @@ function vector.gsX(inptTbl, brckt, dignum)
str = str .. "\\ \\newline Step " .. cnt .. ": $$ u_" .. cnt .. "=v_" .. cnt .. "="
str = str .. brcktL .. vector.show(inptTbl[1], dignum) .. brcktR
str = str .. " $$ e_" .. cnt .. "="
- if vector.euclidnorm(tbl[1]) ~= complex(0.0) then
+ if complex.round(vector.euclidnorm(tbl[1])) ~= complex("0.0") then
str = str .. "\\frac{u_{" .. cnt .. "}}" .. "{||u_{" .. cnt .. "}||} ="
end
str = str .. brcktL .. vector.show(tbl[1], dignum) .. brcktR
@@ -1200,7 +1200,7 @@ function vector.gsX(inptTbl, brckt, dignum)
tmpTbl[i] = vector.sub(tbl[i], vector.mulnum(tbl[j], vector.dot(tbl[i], tbl[j])))
tbl[i] = vector.sub(tbl[i], vector.mulnum(tbl[j], vector.dot(tbl[i], tbl[j])))
end
- if vector.euclidnorm(tbl[i]) ~= complex(0.0) then
+ if complex.round(vector.euclidnorm(tbl[i])) ~= complex("0.0") then
tbl[i] = vector.mulnum(tbl[i], 1 / vector.euclidnorm(tbl[i]))
else
tbl[i] = vector.mulnum(tbl[i], 1.0)
diff --git a/macros/luatex/latex/lualinalg/lualinalg.tex b/macros/luatex/latex/lualinalg/lualinalg.tex
index 250acd1544..a5c792be1d 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.tex
+++ b/macros/luatex/latex/lualinalg/lualinalg.tex
@@ -1172,14 +1172,6 @@ The sum of squares of diagonal entries of matrix \(m = 98 + 54\mathrm{i}\).
The sum of matrices \(m1,m2 \text{ and } m3 =\begin{bmatrix} 111 & 222 & 333 \\ 444 & 555 & 666+666\mathrm{i} \end{bmatrix} \).
\end{framed}
-\section{Known issues and limitations}
-\begin{itemize}
-\item The package supports small and big numbers. They can be input in the usual scientific notation. The math library in Lua defines constants with the maximum \verb|math.maxinteger| and the minimum \verb|math.mininteger| values for an integer. The result wraps around when there is a computational operation on integers that would result in a value smaller than the \verb|mininteger| or larger than the \verb|maxinteger|. It means that the computed result is the only number between the \verb|miniinteger| and \verb|maxinteger|.
-\item The package currently supports only numerical computations. The table in a Lua is a data type that implements an associative array. This feature is used in packages to define and store vectors and matrices. This approach is close to object-oriented programming. It will allow easy conversion of algorithms in packages for symbolic computations. Future package updates will consider algorithm conversions to support symbolic calculations.
-
-\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
diff --git a/macros/luatex/latex/luamaths/README.txt b/macros/luatex/latex/luamaths/README.txt
index 43acb565dd..a4a7a334fd 100644
--- a/macros/luatex/latex/luamaths/README.txt
+++ b/macros/luatex/latex/luamaths/README.txt
@@ -1,5 +1,5 @@
# The luamaths package
-# version 1.3
+# version 1.4
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty@gmail.com
diff --git a/macros/luatex/latex/luamaths/luamaths-fractions.lua b/macros/luatex/latex/luamaths/luamaths-fractions.lua
index 540e5b21a2..f13d335245 100644
--- a/macros/luatex/latex/luamaths/luamaths-fractions.lua
+++ b/macros/luatex/latex/luamaths/luamaths-fractions.lua
@@ -1,6 +1,6 @@
-- The luafractions module
-- Authors: Chetan Shirore and Ajit Kumar
--- version 1.1, Date=04-Aug-2023
+-- version 1.2, Date=21-Aug-2023
-- Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt.
M = {} -- the module
@@ -132,7 +132,7 @@ function M.sub(a, b)
if type( a ) == "table" and type(b) =="table" then
if getmetatable( a ) == frac_mt and getmetatable( b ) == complex_meta then
- return setmetatable( { a-b[1], b[2] }, complex_meta )
+ return setmetatable( { a-b[1], -b[2] }, complex_meta )
end
end
diff --git a/macros/luatex/latex/luamaths/luamaths.pdf b/macros/luatex/latex/luamaths/luamaths.pdf
index d5389a3894..13ecb392af 100644
--- a/macros/luatex/latex/luamaths/luamaths.pdf
+++ b/macros/luatex/latex/luamaths/luamaths.pdf
Binary files differ
diff --git a/macros/luatex/latex/luamaths/luamaths.sty b/macros/luatex/latex/luamaths/luamaths.sty
index b73759c00b..1f6bf1ade0 100644
--- a/macros/luatex/latex/luamaths/luamaths.sty
+++ b/macros/luatex/latex/luamaths/luamaths.sty
@@ -1,9 +1,9 @@
% The luamaths package
-% version 1.3
+% version 1.4
% Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt.
%Authors: Chetan Shirore and Ajit Kumar
-\ProvidesPackage{luamaths}[1.3]
+\ProvidesPackage{luamaths}[1.4]
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
\RequirePackage{luacode}