1.1.1 • Published 6 months ago

mathjslab-calculator v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

MathJSLab Calculator

Netlify Status MIT License CircleCI

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-calculator"></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 mathjs-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-calculator"></div>
    ...
</body>

This demo also uses:

Build

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

Community

Join the community chat:

Join the chat at https://matrix.to/#/#mathjslab:gitter.im

License

MIT License

Copyright © 2016-2023 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.