- Perform basic arithmetic operations
- Embrace trigonometry with sin, cos, cot, csc, sec
- Use the power of π with the shorthand 'pi'
- Solve exponentiation with '^'
- Clone this repository
- Run
npm install
to set things up - Channel your inner sorcerer with
node calculator.js
- Go to
Releases
- Download the latest version of the app, and don't forget to add it to your
System32
folder to enable running it globally in your CMD.
Under the hood, 2\\ wields the powerful "eval" function to interpret and execute your incantations. This magical function turns your mathematical expressions into reality, making mathematical equations for programmers as easy as waving a wand.
~ 2 + 2
>> 4
~ sin(pi/2)
>> 1
Remember, type exit
, quit
, close
, or end
to gracefully leave the program!
Discover a new method or want to add a new ideas? Contributions are welcome!