texlive[67746] Master/texmf-dist: luanumint (27jul23)

commits+karl at tug.org commits+karl at tug.org
Thu Jul 27 21:52:49 CEST 2023


Revision: 67746
          http://tug.org/svn/texlive?view=revision&revision=67746
Author:   karl
Date:     2023-07-27 21:52:49 +0200 (Thu, 27 Jul 2023)
Log Message:
-----------
luanumint (27jul23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/luanumint/README.txt
    trunk/Master/texmf-dist/doc/lualatex/luanumint/luanumint.pdf
    trunk/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty

Modified: trunk/Master/texmf-dist/doc/lualatex/luanumint/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luanumint/README.txt	2023-07-27 19:52:38 UTC (rev 67745)
+++ trunk/Master/texmf-dist/doc/lualatex/luanumint/README.txt	2023-07-27 19:52:49 UTC (rev 67746)
@@ -1,3 +1,8 @@
+# The luanumint package
+# version 1.1 
+# Authors: Chetan Shirore and Ajit Kumar
+# Email: mathsbeauty at gmail.com
+
 # Introduction
 The luanumint package is developed using Lua to find the numerical integration of real-valued functions of a real variable over closed and bounded intervals. The package provides commands to find numerical integration using the mid-point, trapezoidal, and Simpson's one-third and three-eighth rules. The loadstring command is used to load and evaluate functions at different points in the mathematics environment of Lua. The package also provides commands to find numerical integration with step-by-step calculations. The package's commands have an optional argument to round off the numbers to the desired number of decimal places. The breqn package is loaded to display and align step-by-step calculations properly. Advanced users can customize the code to achieve the desired formatting of step-by-step computations. The package can assist in creating various problems on numerical integration with their solutions. The results obtained using different methods of numerical integration can be compared. It can save users' efforts of doing computations involving numerical integration in external software and copying them inside LaTeX documents.
 

Modified: trunk/Master/texmf-dist/doc/lualatex/luanumint/luanumint.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty	2023-07-27 19:52:38 UTC (rev 67745)
+++ trunk/Master/texmf-dist/tex/lualatex/luanumint/luanumint.sty	2023-07-27 19:52:49 UTC (rev 67746)
@@ -1,9 +1,9 @@
 % The luanumint package
-% version 1.0
+% version 1.1
 % 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.0]
+\ProvidesPackage{luanumint}[1.1]
 \RequirePackage{luacode,breqn,xkeyval}
 \begin{luacode*}
 function checksign(x)
@@ -215,11 +215,11 @@
 \end{luacode*}
 
 % ========= KEY DEFINITIONS =========
-\define at key{someop}{a}{\def\mop at one{#1}}%
-\define at key{someop}{b}{\def\mop at two{#1}}%
-\define at key{someop}{n}{\def\mop at three{#1}}%
-\define at key{someop}{func}{\def\mop at four{#1}}%
-\define at key{someop}{trun}{\def\mop at five{#1}}%
+\define at key{someop}{a}{\def\mop at onex{#1}}%
+\define at key{someop}{b}{\def\mop at twox{#1}}%
+\define at key{someop}{n}{\def\mop at threex{#1}}%
+\define at key{someop}{func}{\def\mop at fourx{#1}}%
+\define at key{someop}{trun}{\def\mop at fivex{#1}}%
 % ========= KEY DEFAULTS =========
 \setkeys{someop}{a=0}%
 \setkeys{someop}{b=1}%
@@ -232,7 +232,7 @@
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
 local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()
-tex.print(luamidpt(f,\mop at one,\mop at two,\mop at three,\mop at five))
+tex.print(luamidpt(f,\mop at onex,\mop at twox,\mop at threex,\mop at fivex))
 }%
 }%
 }%
@@ -242,7 +242,7 @@
 \directlua{%
 
 tempsubexp = "("..\luastring{#2}..")"
-local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()   tex.sprint(luamidptSteps(f,\mop at one,\mop at two,\mop at three,'\mop at four',\mop at five))
+local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()   tex.sprint(luamidptSteps(f,\mop at onex,\mop at twox,\mop at threex,'\mop at fourx',\mop at fivex))
 }%
 \endgroup}%
 
@@ -251,7 +251,7 @@
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
 local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()
-tex.print(luatrapz(f,\mop at one,\mop at two,\mop at three,\mop at five))
+tex.print(luatrapz(f,\mop at onex,\mop at twox,\mop at threex,\mop at fivex))
 }%
 }%
 }%
@@ -260,7 +260,7 @@
 \setkeys{someop}{#1}%
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
-local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()   tex.sprint(luatrapzsteps(f,\mop at one,\mop at two,\mop at three,'\mop at four',\mop at five))
+local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()   tex.sprint(luatrapzsteps(f,\mop at onex,\mop at twox,\mop at threex,'\mop at fourx',\mop at fivex))
 }%
 \endgroup}%
 
@@ -268,7 +268,7 @@
 \setkeys{someop}{#1}%
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
-local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)() tex.print(luasimpsononethird(f,\mop at one,\mop at two,\mop at three,\mop at five))
+local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)() tex.print(luasimpsononethird(f,\mop at onex,\mop at twox,\mop at threex,\mop at fivex))
 }%
 }%
 }%
@@ -277,7 +277,7 @@
 \setkeys{someop}{#1}%
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
-local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsononethirdsteps(f,\mop at one,\mop at two,\mop at three,'\mop at four',\mop at five))
+local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsononethirdsteps(f,\mop at onex,\mop at twox,\mop at threex,'\mop at fourx',\mop at fivex))
 }%
 \endgroup}%
 
@@ -286,7 +286,7 @@
 \setkeys{someop}{#1}%
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
-local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()  tex.print(luasimpsonthreight(f,\mop at one,\mop at two,\mop at three,\mop at five))
+local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)()  tex.print(luasimpsonthreight(f,\mop at onex,\mop at twox,\mop at threex,\mop at fivex))
 }%
 }%
 }%
@@ -295,7 +295,7 @@
 \setkeys{someop}{#1}%
 \directlua{%
 tempsubexp = "("..\luastring{#2}..")"
-local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsonthreightsteps(f,\mop at one,\mop at two,\mop at three,'\mop at four',\mop at five))
+local f = load("return function(x) return "  ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsonthreightsteps(f,\mop at onex,\mop at twox,\mop at threex,'\mop at fourx',\mop at fivex))
 }%
 \endgroup}%
 \endinput
\ No newline at end of file



More information about the tex-live-commits mailing list.