Continued fraction/Arithmetic/G(matrix ng, continued fraction n): Difference between revisions
Continued fraction/Arithmetic/G(matrix ng, continued fraction n) (view source)
Revision as of 23:48, 21 February 2023
, 1 year ago→Using linear types
Line 834:
===Using linear types===
This method of implementation purposely avoids the need for a garbage collector, and should be safe against the possibility of a memory leak. It does not memoize results, however.
The demo program outputs LuaTeX macro code (for plain TeX, not LaTeX).
<syntaxhighlight lang="ats">(*------------------------------------------------------------------*)
|