Interpreter engine
The core package is written in TypeScript and simulates a subset of MATLAB®/Octave syntax.
TypeScript numerical computing for the browser
MathJSLab simulates a subset of the MATLAB®/Octave language. Use one of the online applications to explore MathJSLab features. Use the package in your project to run expressions, functions and matrices, with MathML-rendered results and full compatibility in the web browser.
npm install mathjslab
>> A = [1 2; 3 4]>> det(A)>> f = @(x) a*x^2+b*x+cExecution flow
MathJSLab reads the input, parses it into an internal representation, evaluates expressions and commands, and renders mathematical results as MathML for the browser.
Features
The core package is written in TypeScript and simulates a subset of MATLAB®/Octave syntax.
The web app is a package demonstration Progressive Web App (PWA) with Web Components, responsive layout, Markdown help, schemes and diagrams with Mermaid and charts with Plotly.
Command help is organized in English, Portuguese and Spanish.
The interpreter works with arbitrary precision arithmetic through decimal.js and can generate expressions and results rendered in MathML.
Ecosystem
The MathJSLab Organization on GitHub owns the project repositories: the package, the web applications, the project page and the organization profile itself.
TypeScript engine published to npm, with parser, evaluator and mathematical rendering components.
Progressive web app that exposes the interpreter in a responsive browser interface.
Scientific calculator prompt application hosted at calc.mathjslab.com and powered by the MathJSLab package.
Batch-processing web application hosted at batch.mathjslab.com and powered by the MathJSLab package.
Shared profile, repository templates and project-wide support material for MathJSLab.
Publication
MathJSLab is published as free software, distributed as a reusable package and with persistent identifiers assigned to it.
The interpreter package is published in the npm registry as mathjslab. The source code is maintained under the MathJSLab organization on GitHub, and the package, the companion web application, the calculator and the batch application have DOI and ISBN identifiers so they can be cited in academic and institutional contexts.
The browser application demonstrates the interpreter, is maintained on GitHub and has its own DOI and ISBN records.
The calculator application offers a simplified prompt interface hosted at calc.mathjslab.com, with its own DOI and project publication badges.
The batch application provides a text-area interface with syntax highlighting for running MathJSLab commands in sequence.
Archive
Files and documents related to the MathJSLab project.
English version of the paper on symbolic problem-solving in Physics and Mathematics education with MathJSLab.
July 10, 2026 Portuguese · archive/01/main-pt.pdf Uma proposta metodológica que articula a resolução literal de problemas de Física e o software MathJSLabPortuguese version of the paper on literal problem-solving in Physics and Mathematics education with MathJSLab.
13 de maio de 2026 Portuguese · archive/02/main-pt.pdf MathJSLab: Prova de conceito de computação científica no navegador e software como artefato acadêmicoPortuguese paper presenting MathJSLab as browser-based scientific computing and publishable academic software.
4 de junho de 2026Resources
Try the web applications from the app hub. Install the package, browse the organization profile on GitHub or consult the command help.
MathJSLab is intended for educational purposes, helping teachers and students use a computer-aided calculation tool that runs in the browser.
MathJSLab is not affiliated, sponsored or endorsed by The MathWorks, Inc. MATLAB® is a registered trademark of The MathWorks, Inc.
Contact
To contact the MathJSLab project organization, write to the address
License
MathJSLab is distributed as free software under the MIT License, allowing use, modification and redistribution under the terms below.
MIT License
Copyright (c) 2016-2026 Sergio Lindau, mathjslab.com, ISBN 978-65-00-82338-7
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.