Skip to content

sergiolindau/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scientific Calculator

Interpreter with language syntax like MATLAB®/Octave

This is a scientific calculator based on MATLAB®/Octave syntax written in Javascript (Typescript). It uses the Jison parser generator to create an AST (Abstract Syntax Tree). It also uses the decimal.js API to do calculations with arbitrary precision and displays the computed math expressions in a user-friendly manner (MathML). To render MathML in browsers without support, it uses the MathJax polyfill.

The calculations can be made in a batch processing or in an interactive prompt.

The code in this repository is published in lindau-calculator.netlify.app using Netlify hosting service.

Netlify Status

Get a minified version from a CDN. To embed in a webpage using jsDelivr CDN copy the following HTML code:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sergiolindau/calculator/calculator.min.css" type="text/css" media="screen" charset="utf-8">
<script src='https://cdn.jsdelivr.net/gh/sergiolindau/calculator/calculator.min.js'></script>
<div id="panel"></div><script>Shell.init("panel", evalPrompt, linesArray);</script> 

This project is a free software under the terms of MIT License.

References

Some Math knowledge to code this project were noted in the math.html file.

Some links accessed to carry out this work:

Online evaluators

MATLAB® References

Octave references

MATLAB®/Octave language grammar

General compiler construction information

Used APIs repositories

Util Mathematics topics for project coding

Complex Numbers

Linear Algebra and Array Computing

Util Javascript projects and topics for project coding

TensorFlow

TypeScript info

MathML info

Project Development Environment

Code resources

License

MIT License

Copyright © 2016-2022 Sergio Lindau

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.

About

Interpreter with language syntax like MATLAB/Octave

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published