summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-11-20 20:49:38 +0000
committerKarl Berry <karl@freefriends.org>2023-11-20 20:49:38 +0000
commit142bb852248d245ce1a8655c93d784accc719499 (patch)
treea4a58c082e42c9e8b105895885a50bc3bb9918eb /Master/texmf-dist/tex/lualatex
parent91f9ce6a999fe0470ae57fb1429b58303e733ec3 (diff)
luamath-all (20nov23)
git-svn-id: svn://tug.org/texlive/trunk@68918 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r--Master/texmf-dist/tex/lualatex/lualinalg/lualinalg.sty20
-rw-r--r--Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty22
-rw-r--r--Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty12
3 files changed, 27 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lualinalg/lualinalg.sty b/Master/texmf-dist/tex/lualatex/lualinalg/lualinalg.sty
index 55d0542b931..a68bcca5801 100644
--- a/Master/texmf-dist/tex/lualatex/lualinalg/lualinalg.sty
+++ b/Master/texmf-dist/tex/lualatex/lualinalg/lualinalg.sty
@@ -1,9 +1,9 @@
-% The lualinalg package
+% The lualinalg package.
% Authors: Chetan Shirore and Ajit Kumar
-% Version 1.8, Date=23-Aug-2023
+% Version 1.9.
% 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.8]
+\ProvidesPackage{lualinalg}[1.9]
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
\RequirePackage{luamaths}
@@ -11,12 +11,12 @@
\begin{luacode*}
-- matrices part
-matrices = {}
+matrices = {} -- global registry to store matrices.
matrix = {} --module
local matrix_meta = {}
-
+-- Adding functions to the matrix module.
function matrix.new(matrix, rows, columns, str)
if type(rows) == "table" then
for i = 1, #rows do
@@ -895,7 +895,7 @@ function matrix.chqeql(m1, m2)
return true
end
-
+-- Setting Meta-operations in the matrix module.
matrix_meta.__tostring = function(...)
return matrix.show(...)
end
@@ -948,12 +948,12 @@ end
-- vector part
-vectors = {}
+vectors = {} -- global registry to store vectors.
-vector = {} --module
+vector = {} --module.
local vector_meta = {}
-
+-- Adding functions to the vector module.
function vector.new(vector, rows, columns, n)
if columns ~= "e" and columns ~= "zero" then
local tbl = {}
@@ -1267,7 +1267,7 @@ function vector.chqeql(v1, v2)
end
return true
end
-
+-- Setting Meta-operations in the vector module.
vector_meta.__tostring = function(...)
return vector.show(...)
end
diff --git a/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty b/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty
index 95eccf22bb7..e873d15da71 100644
--- a/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty
+++ b/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty
@@ -1,9 +1,9 @@
% The luanumint package
-% version 1.1
+% version 1.2
% 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{luanumint}[1.1]
+\ProvidesPackage{luanumint}[1.2]
\RequirePackage{luacode,breqn,xkeyval}
\begin{luacode*}
function checksign(x)
@@ -13,12 +13,12 @@ function checksign(x)
return ''
end
end
-
+-- Function to round off numbers.
function mathrnd(num, numDecimalPlaces)
local mult = 10^(numDecimalPlaces or 0)
return math.floor(num * mult + 0.5) / mult
end
-
+-- Function for the midpoint rule.
function luamidpt (f,a,b,n,trun)
local trun = trun or 4
local h = (b - a) / n
@@ -30,7 +30,7 @@ function luamidpt (f,a,b,n,trun)
end
return mathrnd(sum*h,trun)
end
-
+-- Function for the midpoint rule with steps.
function luamidptSteps (f,a,b,n,nm,trun)
local trun = trun or 4
local nm = nm or "f"
@@ -54,7 +54,7 @@ function luamidptSteps (f,a,b,n,nm,trun)
end
return str .."\\right] \\\\ = "..otstr.."\\right) \\\\ = "..mathrnd(sum*mathrnd(h,trun),trun)
end
-
+-- Function for the Trapezoidal rule.
function luatrapz (f,a,b,n,trun)
local trun = trun or 4
local h = (b - a) / n
@@ -70,7 +70,7 @@ function luatrapz (f,a,b,n,trun)
end
return mathrnd(sum*h/2,trun)
end
-
+-- Function for the Trapezoidal rule with Steps.
function luatrapzsteps (f,a,b,n,nm,trun)
local trun = trun or 4
local nm = nm or "f"
@@ -99,7 +99,7 @@ function luatrapzsteps (f,a,b,n,nm,trun)
end
return str .."\\right] \\\\ = "..otstr.."\\right) \\\\ = "..mathrnd(sum*mathrnd(h/2,trun),trun)
end
-
+-- Function for the Simpsons one-third rule.
function luasimpsononethird (f,a,b,n,trun)
if (not(n % 2 == 0)) then error("Number of subintervals should be even.") end
local trun = trun or 4
@@ -120,7 +120,7 @@ function luasimpsononethird (f,a,b,n,trun)
end
return mathrnd(sum*h/3,trun)
end
-
+-- Function for the Simpsons one-third rule with steps.
function luasimpsononethirdsteps (f,a,b,n,nm,trun)
if (not(n % 2 == 0)) then error("Number of subintervals should be even.") end
local trun = trun or 4
@@ -155,7 +155,7 @@ function luasimpsononethirdsteps (f,a,b,n,nm,trun)
end
return str .."\\right] \\\\ = "..otstr.."\\right) \\\\ = "..mathrnd(sum*mathrnd(h/3,trun),trun)
end
-
+-- Function for the Simpsons three-eighth rule.
function luasimpsonthreight (f,a,b,n,trun)
if (not(n % 3 == 0)) then error("No. of sub-intervals should be multiple of 3.") end
local trun = trun or 4
@@ -177,7 +177,7 @@ function luasimpsonthreight (f,a,b,n,trun)
end
return mathrnd(sum*3*h/8,trun)
end
-
+-- Function for the Simpsons three-eighth rule with steps.
function luasimpsonthreightsteps (f,a,b,n,nm,trun)
if (not(n % 3 == 0)) then error("No. of sub-intervals should be multip.") end
local trun = trun or 4
diff --git a/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty b/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
index db1b5e1aeaf..490cfa12f0e 100644
--- a/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
+++ b/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
@@ -1,15 +1,15 @@
-% luaplot package
-% version 1.4
+% The luaplot package.
+% Version 1.5.
% 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{luaplot}[1.4]
+\ProvidesPackage{luaplot}[1.5]
\RequirePackage{xkeyval}
\RequirePackage{luacode}
\RequirePackage{tikz}
\RequirePackage{luamplib}
\begin{luacode}
-
+-- compatibility of number formats with the MetaPost system.
function checknumber(x)
if string.find(x, "e") then
return string.format("%.12f",x)
@@ -17,7 +17,7 @@ function checknumber(x)
return x
end
end
-
+-- Determining plot points with Lua for the MetaPost system.
function luapath (f,a,b,n,myclr)
local mytbl ={}
local s = ""
@@ -50,7 +50,7 @@ function luapath (f,a,b,n,myclr)
end
return finalstr
end
-
+-- Determining plot points with Lua for the tikz package.
function luatikzpath (f,a,b,n)
local s = ""
s = s.."(" .. a .."," .. f(a) ..")"