sci-calc
v1.0.3
Published
Command-line cientific calculator based on node REPL, with the possibility to declare functions and variables, and save them and load them. This command-line calculator possesses a permanent history.
Downloads
5
Maintainers
Readme
sci-calc
Command-line scientific calculator based on node REPL, with the possibility to declare functions and variables, and save them and load them. This command-line calculator possesses a permanent history.
Getting Started
Install the module with: npm install sci-calc
, then from the sci-calc package directory run: npm link
Then use it with the command: sc
For help, use: help
Documentation
Available commands:
save x
: save declared variable or function x
load x
: load saved variable or function x
show [opt]
: show [-s --saved] and [-d --declared] variables and functions
search x
: search if variable or function x is saved
remove
: remove saved variable or function x
forget x
: forget declared variable or function x
reset
: forget all declared variables and functions
flushistory
: clear all history
help [opt]
: show this help, or special sections [opt]:
-g --general
general help
-c --commands
list of commands
-m --math
list of available math functions
-p --protected
list of protected names
exit
: exit sci-calc
Contributing
Feel free to contribute to this project
License
Copyright (c) 2018 François Risoud Licensed under the MIT license.
By the way
Power operator **
is now part of the ES6 spec and is implemented in recent node versions. But to support older versions of node, x**n
is parsed and cast it into pow(x, n)
.