You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scientific calculator with trigonometric functions
Full JSDoc documentation
Usage
import{Calculator,Operation,add,multiply}from'calculator';// Using standalone functionsconstsum=add(5,3);// 8constproduct=multiply(4,5);// 20// Using the Calculator classconstcalc=newCalculator();calc.calculate(10,5,Operation.ADD);// 15calc.calculate(20,4,Operation.DIVIDE);// 5// View historyconsole.log(calc.getHistory());
Documentation
Documentation is generated using JSDoc and integrated into the main yardang documentation using sphinx-js.