CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/luacas



A computer algebra system written purely in Lua for embedding into using the Lua 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.


The package manager for your local 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 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 for any version is included with the release.


This package is authored and maintained by Evan Cochrane and Timothy All.

Bug Reporting

Bug reports with the documentation or bugs related to the 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.


Permission is granted to copy, distribute and/or modify this software under the terms of the Project Public License (LPPL), version 1.3c or any later version.poweredbylua

Download the contents of this package in one zip archive (778.5k).

luacas – A computer algebra system for users of Lua

This package provides a portable computer algebra system capable of symbolic computation, written entirely in Lua, designed for use in Lua.

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 without the need for laborious and technical setup.

Bug trackerhttps://github.com/cochraef/LuaLaTeX-CAS/issues
Version1.0.2 2023-05-26
LicensesThe Project Public License 1.3c
MaintainerTimothy All
Evan Cochrane
TDS archiveluacas.tds.zip
Contained inTeX Live as luacas
MiKTeX as luacas
Guest Book Sitemap Contact Contact Author