scilua
Eric C
azur65 at hotmail.fr
Sun May 29 19:32:14 CEST 2022
Hello !
Why is this code not working?
this stumbles on "math.gamma(1.5)" with the code:
[\directlua]:5: attempt to call a nil value (field 'gamma')
stack traceback:
[\directlua]:5: in main chunk.
\luacode at dbg@exec ...code at maybe@printdbg {#1} #1 }
thank you for your answers.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt]{article}
\usepackage{luapackageloader}
\usepackage{luacode}
\begin{luacode*}
package.path = "C:\\ulua\\bin\\bin;C:\\ulua\\sci\\1_0_beta12\\;C:\\ulua\\sci\\1_0_beta12\\init.lua;C:\\ulua\\luajit\\2_1_head20151128\\init.lua;C:\\ulua\\luajit\\2_1_head20151128\\Windows\\x86\\math.lua;C:\\ulua\\luajit\\2_1_head20151128\\Windows\\x86\\math.dll;"
package.cpath="C:\\ulua\\sci\\1_0_beta12;C:\\ulua\\sci.1_0_beta12\\math.dll;C:\\ulua\\clibs\\sci.1_0_beta12\\math.dll;C:\\ulua\\clibs\\loadall.dll;C:\\ulua\\clib_libcurl\\7_42_1+3\\;C:\\ulua\\clib_libcurl\\7_42_1+3\\Windows\\x86\\;C:\\ulua\\lcurl\\0_3_1+103\\;C:\\ulua\\lcurl\\0_3_1+103\\Windows\\x86;C:\\ulua\\clib_libopenblas\\0_2_15\\Windows;"
\end{luacode*}
\begin{document}
\begin{luacode*}
local math = require("math")
u=math.gamma(1.5)
tex.sprint(u .."\\\\") --0.88622692545276
\end{luacode*}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20220529/810541b7/attachment.html>
More information about the tex-live
mailing list.