Rohan Phanse

Functional Calculator - Crunch numbers using functional programming!

by
An intuitive and easy-to-use web calculator with the power of functional programming languages and the terminal!

Add a comment

Replies

Best
Rohan Phanse
Maker
📌
Hi everyone, welcome to Functional Calculator, an intuitive and easy-to-use web calculator with the power of functional programming languages and the terminal! My goal for this project was to create a web calculator that offered standard calculator functions as well as more powerful features from programming languages through a simple and accessible syntax. This calculator brings together functionality usually found in dozens of different calculators, and seamlessly integrates the features together. As a challenge to myself, I decided not to use any external libraries. The entire calculator including the parser, evaluation engine, and UI was implemented with a few thousand lines of JavaScript code! Math Features: linear algebra (e.g. rref and eigen), calculus (e.g. diff and lim), complex numbers, polynomial root solvers, 2D graphing with plot, 3D graphing with plot3 Physics and Chemistry Features: physical units and constants, molar masses, balance chemical equations Functional Programming Features: variables, regular and anonymous @ functions, map and filter, type checking, lambda capture, currying, conditional logic, trace function calls Terminal Features: arrow keys move through history, help documentation, syntax highlighting, autocomplete Additional Features: locally save variables and functions, unit and base conversions