Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

andstor/maxima-codegen

Repository files navigation

maxima-codegen

Maxima code generator from latex-math-parser AST.

This code generator takes LaTeX math expressions and converts them into Maxima syntax through an abstract syntax tree (AST) representation. It works with @andstor/latex-math-parser to provide seamless conversion from LaTeX to Maxima code.

Maxima is a computer algebra system (CAS) that can manipulate symbolic and numerical expressions.

Installation

npm install @andstor/maxima-codegen

To create the AST, you will also need to install the LaTeX math parser:

npm install @andstor/latex-math-parser

Usage

const { parse } = require('@andstor/latex-math-parser');
const { generate } = require('@andstor/maxima-codegen');
const latex = '\\frac{a}{b} + \\sqrt{x}';
const ast = parse(latex);
const maximaCode = generate(ast);
console.log(maximaCode); // Output: a/b + sqrt(x)

About

πŸ“ Maxima code generator from LaTeX math AST.

Resources

License

Stars

Watchers

Forks

Packages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /