An interpreter with language syntax like MATLAB®/Octave written in Typescript.
ISBN 978-65-00-84828-1
This is a demo application of MathJSLab npm package.
See this demo hosted on Netlify.
Get a minified version from a CDN. To embed MathJSLab Calculator in a webpage using jsDelivr CDN copy the following HTML code:
<head>
...
<script defer src="https://cdn.jsdelivr.net/gh/sergiolindau/mathjslab-calculator/mathjslab-calculator.min.js"></script>
...
</head>
<body>
...
<div id="mathjslab-examples"></div>
...
<div id="mathjslab-prompt"></div>
...
</body>
For the examples and the help
command to be available, it is necessary to
copy the example
and help
directories to the root of the web page.
Another option is to configure to use assets directly from
repository via
jsDelivr CDN too before load mathjslab-calculator.min.js
script using:
<head>
...
<script>
MathJSLabCalc = {
exampleBaseUrl: "https://cdn.jsdelivr.net/gh/sergiolindau/mathjslab-calculator/",
helpBaseUrl: "https://cdn.jsdelivr.net/gh/sergiolindau/mathjslab-calculator/",
}
</script>
<script defer src="https://cdn.jsdelivr.net/gh/sergiolindau/mathjslab-calculator/mathjslab-calculator.min.js"></script>
...
</head>
<body>
...
<div id="mathjslab-examples"></div>
...
<div id="mathjslab-prompt"></div>
...
</body>
This demo also uses:
- MathJax for navigators without MathML support.
- Marked to format Markdown files as HTML.
- Plotly.js to generate plots, histograms and 3D graphics.
- Mermaid to generate charts and diagrams.
To contribute to this project see our contributing guidelines.
Join the community chat:
Build mathjslab-calculator
in development mode:
npm run build:dev
Build mathjslab-calculator
in debug mode:
npm run build:debug
Build mathjslab-calculator
in production mode:
npm run build:prod
Join the community chat:
MIT License
Copyright © 2016-2024 Sergio Lindau, ISBN 978-65-00-84828-1
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.