Directory macros/luatex/latex/luacas
LuaLaTeX-CAS
A computer algebra system written purely in Lua for embedding into LaTeX using the LuaLaTeX compiler. Includes symbolic root-finding, factoring, expansion, differentiation, and integration, as well as some number-theoretic and ring-theoretic functionality. Can even run in Overleaf.
Performance is necessarily not extremely fast, given Lua is an interpreted language. Do not expect to be able to factor large-degree polynomials or large integers in a reasonable time (but this is not the point of this CAS).
The Lua CAS itself can be downloaded or cloned from https://github.com/cochraef/LuaCAS.
Installation
The package manager for your local TeX distribution ought to work just fine. Alternatively, download luacas.tds.zip and unzip the file in the root of one of your TDS trees. You may need to update some filename database after this (this may vary depending on your TeX distribution).
To run the LuaCAS tests, navigate to the luacas directory in either repository, and run the command lua test\main.lua
. You will need Lua version 5.3 or later.
Documentation
Documentation for any version is included with the release.
Authors
This package is authored and maintained by Evan Cochrane and Timothy All.
Bug Reporting
Bug reports with the documentation or bugs related to the LaTeX end should go in this repository, while bug reports related to the CAS should go in https://github.com/cochraef/LuaCAS. There is no required format for bugs, but it should be clear how to replicate the bug and what you think the intended functionality should be.
License
Permission is granted to copy, distribute and/or modify this software under the terms of the LaTeX Project Public License (LPPL), version 1.3c or any later version.
Download the contents of this package in one zip archive (778.5k).
luacas – A computer algebra system for users of LuaLaTeX
This package provides a portable computer algebra system capable of symbolic computation, written entirely in Lua, designed for use in LuaLaTeX.
Features include: arbitrary-precision integer and rational arithmetic, factoring of univariate polynomials over the rationals and finite fields, number theoretic algorithms, symbolic differentiation and integration, and more. The target audience for this package are mathematics students, instructors, and professionals who would like some ability to perform basic symbolic computations within LaTeX without the need for laborious and technical setup.
Package | luacas |
Bug tracker | https://github.com/cochraef/LuaLaTeX-CAS/issues |
Repository | https://github.com/cochraef/LuaLaTeX-CAS |
Version | 1.0.2 2023-05-26 |
Licenses | The LaTeX Project Public License 1.3c |
Maintainer | Timothy All Evan Cochrane |
TDS archive | luacas.tds.zip |
Contained in | TeX Live as luacas MiKTeX as luacas |
Topics | Calculation Maths LuaTeX |